]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r198406: wordexp(3): fix some bugs with signals and long outputs
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 6 Dec 2009 22:14:58 +0000 (22:14 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 6 Dec 2009 22:14:58 +0000 (22:14 +0000)
commit28df85a5e36e0e1ea6655a863ba970640d01fb26
treec5d89736cedf6f4cb5aaecd1e2b4b1c0286aa9b9
parentcdaf38b63d925709a410daa75418a939be63f492
MFC r198406: wordexp(3): fix some bugs with signals and long outputs

* retry various system calls on EINTR
* retry the rest after a short read (common if there is more than about 1K
  of output)
* block SIGCHLD like system(3) does (note that this does not and cannot
  work fully in threaded programs, they will need to be careful with wait
  functions)

PR: 90580

git-svn-id: svn://svn.freebsd.org/base/stable/8@200189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/wordexp.c
tools/regression/lib/libc/gen/test-wordexp.c