Fixed harmless lurking sandbox-child zombies.
authorshort <>
Thu, 9 Oct 2003 07:42:55 +0000 (07:42 +0000)
committershort <>
Thu, 9 Oct 2003 07:42:55 +0000 (07:42 +0000)
 - Bugreport by the courtesy of Pavouk.

src/libcaptive/sandbox/parent-Vfs.c

index cac0aaf..ec42e85 100644 (file)
@@ -179,7 +179,11 @@ const gchar *socketpathname;
                /* waitpid(2) errors are ignored as we should be immune against failures as the parent. */
                waitpid(captive_vfs_parent_object->corba_child_pid,
                                NULL,   /* status */
-                               WNOHANG);       /* options */
+                               /* options: !WNOHANG as the child will not be ready yet for waitpid()
+                                * right after its SIGKILL. As we did SIGKILL I hope it has no chance
+                                * to block us.
+                                */
+                               0);     /* options */
                }
 
        if (r==GNOME_VFS_OK) {