aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-15 18:56:14 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-16 08:30:38 -0800
commit58eab6ff13924edd156d45bd8e0a947b8f8e07e9 (patch)
tree00073a748a8551bd27f733648c834dca1281e3c5 /commit.c
parentGit 2.39 (diff)
downloadgit-58eab6ff13924edd156d45bd8e0a947b8f8e07e9.tar.gz
git-58eab6ff13924edd156d45bd8e0a947b8f8e07e9.zip
test-genzeros: avoid raw write(2)
This test helper feeds 256kB of data at once to a single invocation of the write(2) system call, which may be too much for some platforms. Call our xwrite() wrapper that knows to honor MAX_IO_SIZE limit and cope with short writes due to EINTR instead, and die a bit more loudly by calling die_errno() when xwrite() indicates an error. Reported-by: Randall S. Becker <rsbecker@nexbridge.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions