Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2005 15:54:23 +0200
From:      Radim Kolar <hsn@netmag.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, seanc@FreeBSD.org, hsn@sd.FreeBSD.ORG
Subject:   Re: ports/80736: one more patch, please
Message-ID:  <20050508135423.GA61685@sanatana.dharma>
In-Reply-To: <200505071720.j47HK2ls027709@freefall.freebsd.org>
References:  <E1DUBX4-000NaE-Re@sanatana.dharma> <200505071720.j47HK2ls027709@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050508135423.GA61685>