Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2010 23:38:21 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212831 - head/lib/libproc
Message-ID:  <201009182338.o8INcLF8081790@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009182338.o8INcLF8081790>