Re: Trouble writing background-running program
- From: Carlos Moreno <cm_news@xxxxxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 07:36:04 -0700 (PDT)
does your code execute also the second fork() after setsid(), which is
essential to detach from the terminal properly?
A-ha! That must be it !
As I recall there is an example code function "daemon_init()" which you
could simply copy and paste for your project.
Well, the example lacks the second fork, and even though I *had* read
the explanation, I had skipped the (literally) fine print that says
that in
some cases it is recommended to do a second fork etc. etc.
Thanks,
Carlos
--
.
- References:
- Trouble writing background-running program
- From: Carlos Moreno
- Re: Trouble writing background-running program
- From: Guido Scholz
- Trouble writing background-running program
- Prev by Date: Re: Trouble writing background-running program
- Next by Date: girls changing room hentai inuyasha yaoi hentai inuyasha kagome hentai gallery
- Previous by thread: Re: Trouble writing background-running program
- Next by thread: Re: Trouble writing background-running program
- Index(es):