Re: Re: about pppd termination?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Cameron writes:
> On Wed, May 21, 2008 at 10:23:53AM -0400, James Carlson wrote:
> > pppd acts as a process group leader, and sending a signal to the
> > process group means that all children created by pppd (at least those
> > that haven't gone off to start new process groups) will get the
> > signal.  This basically cleans up any charshunt or script that might
> > be running in preparation to exit.
> 
> That reminds me.  In the pptpconfig GUI we must define a handler for
> SIGINT before starting pppd, because if we don't the SIGINT we send to
> pppd comes back to us because of "kill(0,sig)".  Why is this?  popen is
> used to activate pppd, so that output from pppd is redirected to GUI.

I'm not familiar with that GUI.  Is this a "nodetach" case?  An
alternative might be to avoid sending signals to the process group if
pppd is not actually the group leader.

pppd ought to be in charge of its progeny, but parricide doesn't sound
like the right answer.  ;-}

-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux