Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 10:48:28 +0200
From:      Peter Boosten <peter@boosten.org>
To:        hackers@freebsd.org
Subject:   Re: How do I daemonize a process?
Message-ID:  <46A46B5C.5080003@boosten.org>
In-Reply-To: <46A46A40.1080004@fs.ei.tum.de>
References:  <46A46910.9080901@u.washington.edu>	<46A4699C.5080906@u.washington.edu> <46A46A40.1080004@fs.ei.tum.de>

next in thread | previous in thread | raw e-mail | index | archive | help


Simon 'corecode' Schubert wrote:
> 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/
> 
> I suggest daemon(3) if it doesn't have to be portable.
> 

What's wrong with nohup(1)?

Peter
-- 
http://www.boosten.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46A46B5C.5080003>