Date: Fri, 14 May 2010 12:34:06 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/script script.c Message-ID: <201005141234.o4ECYN0l091571@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2010-05-14 12:34:06 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) usr.bin/script script.c Log: SVN rev 208070 on 2010-05-14 12:34:06Z by ed 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 Revision Changes Path 1.24.30.3 +9 -15 src/usr.bin/script/script.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005141234.o4ECYN0l091571>