From owner-svn-src-head@FreeBSD.ORG Sat Sep 18 23:38:21 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AFA4106567A; Sat, 18 Sep 2010 23:38:21 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE8C8FC0C; Sat, 18 Sep 2010 23:38:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o8INcLVU081792; Sat, 18 Sep 2010 23:38:21 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o8INcLF8081790; Sat, 18 Sep 2010 23:38:21 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201009182338.o8INcLF8081790@svn.freebsd.org> From: Rui Paulo Date: Sat, 18 Sep 2010 23:38:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212831 - head/lib/libproc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2010 23:38:21 -0000 Author: rpaulo Date: Sat Sep 18 23:38:21 2010 New Revision: 212831 URL: http://svn.freebsd.org/changeset/base/212831 Log: Ignore EINTR when calling waitpid. Modified: head/lib/libproc/proc_util.c Modified: head/lib/libproc/proc_util.c ============================================================================== --- head/lib/libproc/proc_util.c Sat Sep 18 22:37:47 2010 (r212830) +++ head/lib/libproc/proc_util.c Sat Sep 18 23:38:21 2010 (r212831) @@ -145,7 +145,8 @@ proc_wstatus(struct proc_handle *phdl) if (phdl == NULL) return (-1); if (waitpid(phdl->pid, &status, WUNTRACED) < 0) { - warn("waitpid"); + if (errno != EINTR) + warn("waitpid"); return (-1); } if (WIFSTOPPED(status))