From owner-freebsd-hackers Fri Nov 1 13:52:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA27107 for hackers-outgoing; Fri, 1 Nov 1996 13:52:31 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA26979 for ; Fri, 1 Nov 1996 13:52:11 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA23482 for ; Fri, 1 Nov 1996 22:52:00 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA03021 for freebsd-hackers@freebsd.org; Fri, 1 Nov 1996 22:52:00 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id WAA23522 for freebsd-hackers@freebsd.org; Fri, 1 Nov 1996 22:47:24 +0100 (MET) From: J Wunsch Message-Id: <199611012147.WAA23522@uriah.heep.sax.de> Subject: Re: Zombie processes To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Fri, 1 Nov 1996 22:47:24 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199611011827.LAA28085@phaeton.artisoft.com> from Terry Lambert at "Nov 1, 96 11:27:06 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Terry Lambert wrote: > > I call this intent of confusion, at least. It's not helpful to the > > one who's been asking the question in the first place, either. > > What about the innocent developer, whose code works on all other > platforms? He was too innocent then. AFAIK, this never worked on any BSD system before. (SA_NOCLDWAIT vs. SIG_IGN) > Well, that's an implementation detail... it only bears on the amount > of work required to do it, not whether or not it should be done. Not really. I've already told you that the real work is not required for implementing the SA_ flag, but rather for releasing the old process' address space completely. It's much more convenient to do this from the context of another process. It turns out to be the best solution to reparent the zombie to init, and send init the SIGCHLD. This sounds hacky, but all other ideas i've tried were even more icky. > We have a lot of non-POSIX historical behaviours. This is another > (though POSIX systems implement it as well) which is worth emulating. Nothing to `emulate', but something to `implement'. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)