Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261969AbVE0Tin (ORCPT ); Fri, 27 May 2005 15:38:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262561AbVE0Tim (ORCPT ); Fri, 27 May 2005 15:38:42 -0400 Received: from ms-smtp-04.nyroc.rr.com ([24.24.2.58]:6321 "EHLO ms-smtp-04.nyroc.rr.com") by vger.kernel.org with ESMTP id S261969AbVE0Ti3 (ORCPT ); Fri, 27 May 2005 15:38:29 -0400 Subject: Re: disowning a process From: Steven Rostedt To: "J. Scott Kasten" Cc: Davy Durham , linux-kernel@vger.kernel.org In-Reply-To: References: <42975945.7040208@davyandbeth.com> Content-Type: text/plain Organization: Kihon Technologies Date: Fri, 27 May 2005 15:38:20 -0400 Message-Id: <1117222700.6477.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 23 On Fri, 2005-05-27 at 14:54 -0400, J. Scott Kasten wrote: > > Sounds like a job for the Richard Stevens "Advanced Programming in the > UNIX Environment" book. Check out chapter 13, "daemon processes". It > explains the subtleties of process groups, signals, inheritance, etc.. > better than most. Definitely a good read. God rest his soul. But it doesn't let you know that there's already a daemon function out there. But what daemon does is pretty much a complete version of Stevens' example Program 13.1 "daemon_init". Davy, I recommend that if you don't already have that book, get it. -- Steve - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/