Date: Fri, 30 Apr 2010 22:33:49 +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: <201004302234.o3UMY17L080415@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2010-04-30 22:33:49 UTC FreeBSD src repository Modified files: usr.bin/script script.c Log: SVN rev 207453 on 2010-04-30 22:33:49Z by ed 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 MFC after: 2 weeks Revision Changes Path 1.28 +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?201004302234.o3UMY17L080415>