dbus/dbus dbus-spawn.c,1.18,1.19

Colin Walters walters at freedesktop.org
Tue Nov 9 22:53:13 PST 2004


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv7751/dbus

Modified Files:
	dbus-spawn.c 
Log Message:
2004-11-10  Colin Walters  <walters at verbum.org>

	* dbus/dbus-spawn.c (check_babysit_events): Handle EINTR,
	for extra paranoia.


Index: dbus-spawn.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-spawn.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dbus-spawn.c	29 Aug 2004 02:14:52 -0000	1.18
+++ dbus-spawn.c	10 Nov 2004 06:53:10 -0000	1.19
@@ -864,7 +864,11 @@
   pid_t ret;
   int status;
   
-  ret = waitpid (grandchild_pid, &status, WNOHANG);
+  do
+    {
+      ret = waitpid (grandchild_pid, &status, WNOHANG);
+    }
+  while (ret < 0 && errno == EINTR);
 
   if (ret == 0)
     {



More information about the dbus-commit mailing list