From: Paul Mackerras <paulus@samba.org>
To: linux-ppp@vger.kernel.org
Subject: Re: Re: about pppd termination?
Date: Thu, 22 May 2008 00:38:39 +0000 [thread overview]
Message-ID: <18484.49295.166752.468897@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <200805211447103125311@foxmail.com>
James Cameron writes:
> 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.
Because pppd does kill_my_pg when it gets a SIGTERM, SIGINT or SIGHUP
even if it hasn't detached, and it probably shouldn't. Calling
kill_my_pg is the right thing to do if pppd has detached, because then
it has done a setsid. But if it hasn't detached, then any signal sent
to the process group will get to any connector/disconnector processes
that are running anyway. There does still remain the question of how
pppd gets any connector/disconnector processes to stop if pppd has to
terminate for other reasons, such as getting a SIGSEGV, though.
Paul.
next prev parent reply other threads:[~2008-05-22 0:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 6:47 about pppd termination? cyx_mail
2008-05-21 6:56 ` James Cameron
2008-05-21 7:10 ` cyx_mail
2008-05-21 14:23 ` James Carlson
2008-05-21 23:08 ` James Cameron
2008-05-21 23:14 ` James Carlson
2008-05-22 0:00 ` James Cameron
2008-05-22 0:38 ` James Carlson
2008-05-22 0:38 ` Paul Mackerras [this message]
2008-05-22 0:52 ` James Cameron
2008-05-22 0:56 ` James Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18484.49295.166752.468897@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox