ports/80736: one more patch, please

Radim Kolar hsn at netmag.cz
Sun May 8 15:33:03 UTC 2005


And now, We will sing together!

We need a just little patch,
just little patch,
just little patch.

We need a just little patch,
just little patch,
just little patch.

Added file(s):
- files/patch-zombiekiller

--- server.c.orig	Wed Jan 12 10:29:24 2005
+++ server.c	Sun May  8 15:24:35 2005
@@ -69,7 +69,7 @@
 
 	act.sa_sigaction = ParentSigHandler;
 	sigemptyset(&act.sa_mask);
-	act.sa_flags = SA_SIGINFO; 
+	act.sa_flags = SA_SIGINFO | SA_NOCLDSTOP;
 
 	sigaction(SIGCHLD, &act, 0);
 	sigaction(SIGINT, &act, 0);
@@ -152,7 +152,10 @@
 		break;
  
 	case SIGCHLD:
-		break;		/* ignore, wait for child in main loop */
+		/* ignore, wait for child in main loop */
+	        /* but we need to catch zombie */
+		waitpid(-1,&sig,WNOHANG);
+		break;		
 
 	case SIGHUP:
 		trace(TRACE_DEBUG,



More information about the freebsd-ports-bugs mailing list