On Fri, 15 Dec 2000, Stas Bekman wrote:
> On Sat, 16 Dec 2000, Jeremy Howard wrote:
>
> > Stas Bekman wrote:
> > > But you don't need to call setsid() when you fork. Why looking for
> > > complicated workaround when you can do it properly without any workaround.
> > > Have you ever seen an example of fork that uses setsid?
> > >
> > But your Guide says:
> > ----
> > A much better approach would be to spawn a sub-process, hand it the
> > information it needs to do the task, and have it detach (close STDIN, STDOUT
> > and STDERR + execute setsid()).
> > ----
In fact this is correct. You've taken this snippet out of the context. It
was in the section talking about spawning a process without fork. So it's
absolutely correct.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/