On Mon, May 13, 2002 at 03:23:54PM -0700, Aaron Bannert wrote:
> On Mon, May 13, 2002 at 03:15:44PM -0700, [EMAIL PROTECTED] wrote:
> > In that case I'd suggest we do
> > 
> >     if (setsid() fails)
> >             always log error
> >             exit(1) unless no_detach.
> 
> should that be
>         exit(1) if no_detach
> ? or do I have the logic backward?

We should exit if setsid() fails and we don't want to detach (i.e.
no_detach). If we don't exit at that point we will end up killing processes in
the wrong pgrp later. So I think Aaron's right.

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;

Reply via email to