On Mon, May 13, 2002 at 02:50:34PM -0700, [EMAIL PROTECTED] wrote:
> > Hmm - not entirely trivial; it turns out that most unix-es do not take
> > kindly to
> >
> >     setsid()
> >
> > when not detached/non-root. So I changed Jos/Michaels patch. See below.
> > Anyone any comments ?
> 
> The other obvious way is to make the error non fatal or do a (!geteuid())
> to see if we are running as root.

But wait, if we skip the setsid() if !do_detach we will end up killing the
parent pgrp which contains - in this case - svscan/supervise/others, which is
part of the point of this patch. Am I missing something?

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

Reply via email to