1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix problem with gmc (aka corba-mc) leaving zombies

lying around.

OK'd by:	reg
This commit is contained in:
Ade Lovett 2000-02-06 19:18:19 +00:00
parent fb8b81e3ae
commit 774652b05c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25518

View File

@ -0,0 +1,20 @@
--- 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;
}
/*