Octavian Rasnita wrote:
> Hi,
> 
> Is it possible to create more child processes and let them run, but close
> the main program immediately?
> 
> I have read (in perldoc perlfork) that:
> 
>     A way to mark a pseudo-processes as running detached from their parent
>     (so that the parent would not have to wait() for them if it doesn't want
>     to) will be provided in future.
> 
> Thank you.
> 
> Teddy
> 
> 

I think the note above is for the special case when the parent still has
work to do but doesn't want to have to wait on the children, which is
subtly different than what you actually asked, aka can the parent close.
Assuming you really do want to close the parent then you should be able
to, though you may want to take a look at the source of,

Proc::Daemon::Init()

Before coding this yourself, it is a handy tool.

HTH,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to