Date: Mon, 23 Jul 2007 10:46:50 +0200 From: Jacques Fourie <jf@trispen.com> To: Garrett Cooper <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: How do I daemonize a process? Message-ID: <20070723084650.GA32117@trispen.com> In-Reply-To: <46A4699C.5080906@u.washington.edu> References: <46A46910.9080901@u.washington.edu> <46A4699C.5080906@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 23, 2007 at 01:41:00AM -0700, Garrett Cooper wrote: > Garrett Cooper wrote: > > As the subject suggests I'm trying to determine how I can daemonize > >a C process, outside of using the rc infrastructure, so that it won't > >exit when the TTY exists. Does anyone know any quick references or > >examples? > >Thanks, > >-Garrett > > s/C process/C application process/ > s/exists/exits/ > s/any quick/of any quick/ > > Tonight's not my night for communicating I suppose :(.. > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" If you can modify the source, have a look at the daemon() function : man 3 daemon jacques
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070723084650.GA32117>