From owner-cvs-src-old@FreeBSD.ORG Fri Apr 30 22:34:01 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABCCB1065674 for ; Fri, 30 Apr 2010 22:34:01 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9AFAB8FC0C for ; Fri, 30 Apr 2010 22:34:01 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o3UMY14I080416 for ; Fri, 30 Apr 2010 22:34:01 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3UMY17L080415 for cvs-src-old@freebsd.org; Fri, 30 Apr 2010 22:34:01 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <201004302234.o3UMY17L080415@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Fri, 30 Apr 2010 22:33:49 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/script script.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 22:34:01 -0000 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