1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/x11-fm/gnomemc/files/patch-ah
Ade Lovett 774652b05c Fix problem with gmc (aka corba-mc) leaving zombies
lying around.

OK'd by:	reg
2000-02-06 19:18:19 +00:00

21 lines
441 B
Plaintext

--- gnome/gutil.c.orig Mon Dec 6 17:50:05 1999
+++ gnome/gutil.c Sat Feb 5 10:27:43 2000
@@ -70,12 +70,17 @@
gnome_sigchld_handler (int sig)
{
char c;
+ pid_t p;
+ int s;
if (previous_sigchld.sa_handler != SIG_IGN &&
previous_sigchld.sa_handler != SIG_DFL){
(*previous_sigchld.sa_handler)(sig);
}
write (child_died_notify_handler, &c, sizeof (c));
+
+ while ((p = waitpid(-1, &s, WNOHANG)) > 0)
+ continue;
}
/*