Re: How do I daemonize a process?
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.
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low 砂槙갠NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
_______________________________________________
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"
討論串 (同標題文章)
完整討論串 (本文為第 3 之 9 篇):