From owner-freebsd-hackers Mon Feb 24 12: 5:59 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0705837B401 for ; Mon, 24 Feb 2003 12:05:58 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E48EE43FA3 for ; Mon, 24 Feb 2003 12:05:56 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Mon, 24 Feb 2003 20:05:38 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 18nOoB-0000a8-00; Mon, 24 Feb 2003 20:02:39 +0000 Date: Mon, 24 Feb 2003 20:02:39 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: G-der Cc: freebsd-hackers@freebsd.org Subject: Re: Properly reaping children from a fork() In-Reply-To: <20030224183953.GB80651@gder.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 24 Feb 2003, G-der wrote: > I've attached the code for your enjoyment...I'm sure someone will be able > to point out my mistake pretty quickly. Also I've found a couple of web > pages that kind of explain socket handling but am looking for other > resources that I can consult. You never establish the signal handler. > Thanks in advance, I'm not a normal subscriber to -hackers so a cc to > gder@gder.net would be appreciated. If you've got a bit of spare cash, you might want to peruse a couple of excellent texts: Advanced Programming in the Unix Environment (APUE) and Unix Network Programming (particularly volume 1); both by the late W. Richard Stevens. Well worth the money (and you'll probably receive several recommendations along the same lines). Cheers, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ You know something's gone badly wrong when your algorithm takes O(n^2) time but uses O(2^n) space. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message