[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log
Subject:    Re: svc -d <particular service> kills all supervises and svscan
From:       prj () po ! cwru ! edu (Paul Jarc)
Date:       2001-05-21 17:05:28
[Download RAW message or body]

"Chris K. Young" <cky@pobox.com> writes:
> Quoted from Alex Pennace [20 May 2001]:
> > setsid(8) is part of util-linux

Also note that Dan's ptyget package has ttydetach, which uses
setsid(), but it executes the given command even if setsid fails,
which may not be what you want.

> I've been told that setsid(2) and setpgrp(2) do different things.

They do, but both will work here.  setpgrp allows you to assign a
process to a process group - in this case, putting
ppp-xs4all-fast-adsl in its own process group is all you need to do.
setsid puts the calling process in its own process group and also
disassociates from the controlling tty, which probably isn't needed in
this case, but it won't do any harm.


paul

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic