]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r207453:
authored <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 May 2010 12:34:06 +0000 (12:34 +0000)
committered <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 May 2010 12:34:06 +0000 (12:34 +0000)
commit331adf3ec62f34d31e6c7315fb72f834343e5f57
tree2dd474cad0b7db852874371960ee4c3dc666f96b
parent6385a41874e2708e555a7e9b58908035aad8a029
MFC r207453:

  Remove WNOHANG flag from wait3().

  Because script(1) now reliably terminates when the TTY is closed, it may
  be the case that the call to wait3() occurs just before the child
  process exits. This causes error codes to be ignored.

  Just change script(1) to use waitpid() instead of wait3(). This makes it
  more portable and prevents the need for a loop, since waitpid() only
  returns a specified process.

PR:           bin/146189
Tested by:    amdmi3@, older version

git-svn-id: svn://svn.freebsd.org/base/stable/8@208070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/script/script.c