summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-04-02 21:34:38 +0000
committerjilles <jilles@FreeBSD.org>2013-04-02 21:34:38 +0000
commit7236eb0dda54324c7d5909c8f01ef2aaaefb3e30 (patch)
tree8f6ca9e8c37ed97b49f6b76f25dccfd5da809069 /lib/libc/stdlib/random.c
parente2bb503df79b3a278b60540c030abad3cc7817e4 (diff)
downloadFreeBSD-src-7236eb0dda54324c7d5909c8f01ef2aaaefb3e30.zip
FreeBSD-src-7236eb0dda54324c7d5909c8f01ef2aaaefb3e30.tar.gz
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.
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud