From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 8 15:33:03 2005 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42D6016A4E4; Sun, 8 May 2005 15:33:03 +0000 (GMT) Received: from smtp2.vol.cz (smtp2.vol.cz [195.250.128.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A4A43D90; Sun, 8 May 2005 15:33:02 +0000 (GMT) (envelope-from hsn@netmag.cz) Received: from sanatana.dharma (volny-ipt-4-1.dialup.vol.cz [62.177.67.1]) by smtp2.vol.cz (8.12.9p2/8.12.9) with ESMTP id j48FWx8U059617; Sun, 8 May 2005 17:33:01 +0200 (CEST) (envelope-from hsn@netmag.cz) Received: from hsn@localhost by sanatana.dharma (Exim 4.51_0 FreeBSD) id 1DUmEh-000H42-Mt ; Sun, 08 May 2005 15:54:23 +0200 Date: Sun, 8 May 2005 15:54:23 +0200 From: Radim Kolar To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, seanc@FreeBSD.org, hsn@sd.FreeBSD.ORG Message-ID: <20050508135423.GA61685@sanatana.dharma> References: <200505071720.j47HK2ls027709@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505071720.j47HK2ls027709@freefall.freebsd.org> User-Agent: Mutt/1.5.9i Subject: Re: ports/80736: one more patch, please X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 15:33:03 -0000 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,