in reply to Re: Re: Re: how to make a demon in perl?
in thread how to make a demon in perl?
Right - the child inherits the file descriptors of the parent, which is why you need to close them. So you can either close them before the fork, which will close them both for the parent and the child, or after the fork, which will close them for the child, but leave them open for the parent.
Perhaps I don't understand your question? Why wouldn't the child in this case continue running after the disconnect?
-- Dan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
5 x Re: how to make a demon in perl?
by blm (Hermit) on Oct 01, 2002 at 13:59 UTC | |
by zigdon (Deacon) on Oct 01, 2002 at 14:15 UTC |