aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-04-02 21:34:38 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-04-02 21:34:38 +0000
commitc6a453a430c67cc9d2d796721c1cc34b1d619dca (patch)
tree8f6ca9e8c37ed97b49f6b76f25dccfd5da809069 /lib/libc/stdlib/rand.c
parent1748de26cbc9e7e042ea9053ed49d81d926f9ebb (diff)
downloadsrc-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