From owner-freebsd-hackers Tue Oct 21 01:55:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA00950 for hackers-outgoing; Tue, 21 Oct 1997 01:55:05 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from citadel.cdsec.com (citadel.cdsec.com [192.96.22.18]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA00944 for ; Tue, 21 Oct 1997 01:55:01 -0700 (PDT) (envelope-from gram@cdsec.com) Received: (from nobody@localhost) by citadel.cdsec.com (8.8.5/8.6.9) id LAA27137 for ; Tue, 21 Oct 1997 11:05:05 +0200 (SAT) Received: by citadel via recvmail id 27104; Tue Oct 21 11:04:17 1997 by gram.cdsec.com (8.8.5/8.8.5) id KAA12877 for hackers@freebsd.org; Tue, 21 Oct 1997 10:30:56 +0200 (SAT) From: Graham Wheeler Message-Id: <199710210830.KAA12877@cdsec.com> Subject: Re: Bug in 2.2.2 To: hackers@freebsd.org Date: Tue, 21 Oct 1997 10:30:55 +0200 (SAT) X-Mailer: ELM [version 2.4 PL25-h4.1] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I see the fork() in your code, but I don't see where it's doing a wait() t= > o = > > pick up the childs exit status. Am I missing something? No - I wrote the program very quickly. As I saved it I remembered I hadn't caught the SIGCHLDs to reap the zombies, but decided to run it anyway, and add the reap code afterwards. Which is why I said in my original message: > I hadn't bothered doing any signal catching here; this was quick 'n dirty. This doesn't change the point - which is that the program should not cause a panic. It should just cause the process table to fill up and for the fork()s to fail after a while. Admittedly this could cause problems with the O/S if it tries to fork something else, but the first message I saw was not a `cannot fork', but a `panic: vmstat...' (or something along those lines; I don't remember the exact message but I do remember that it was a VM related message). cheers gram -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)23-6065/6/7 Internet/Intranet Network Specialists Mobile: +27(83)-253-9864 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Data Security Products WWW: http://www.cdsec.com/