diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-04-02 21:34:38 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-04-02 21:34:38 +0000 |
commit | c6a453a430c67cc9d2d796721c1cc34b1d619dca (patch) | |
tree | 8f6ca9e8c37ed97b49f6b76f25dccfd5da809069 /lib/libc/stdlib/rand.c | |
parent | 1748de26cbc9e7e042ea9053ed49d81d926f9ebb (diff) | |
download | src-c6a453a430c67cc9d2d796721c1cc34b1d619dca.tar.gz src-c6a453a430c67cc9d2d796721c1cc34b1d619dca.zip |
sh: Write as much into the heredoc pipe as possible, to avoid forking.
Use non-blocking I/O to write as much as the pipe will accept (often 64K,
but it can be as little as 4K), avoiding the need for the ugly PIPESIZE
constant. If PIPESIZE was set too high, a deadlock would occur.
Notes
Notes:
svn path=/head/; revision=249034
Diffstat (limited to 'lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions