Linux PPP protocol development
 help / color / mirror / Atom feed
From: "Milan P. Stanic" <mps@rns-nis.co.yu>
To: linux-ppp@vger.kernel.org
Subject: Re: pppd 2.4.2, Control-C bug?
Date: Fri, 23 Jan 2004 22:23:15 +0000	[thread overview]
Message-ID: <20040123222315.GA24521@rns-nis.co.yu> (raw)
In-Reply-To: <Pine.LNX.4.21.0401231150020.2019-100000@corncob.localhost.tld>

On Fri, Jan 23, 2004 at 02:53:13PM -0600, Clifford Kite wrote:
> Problem:  After pppd 2.4.2 - with the updetach option - is run by root
> from a terminal window, a control-C from the keyboard before the PPP
> link completes doesn't terminate pppd.
> 
> The line below was derived from my usual connection script and used for
> testing.
> 
> /usr/sbin/pppd connect '/usr/sbin/chat -v "" ATZ\&F OK ATM0W1\&D1%E1s95G \
> OK ATDTxxx-xxxx TIMEOUT 45 V90 \\c TIMEOUT 15 CONNECT \\d\\c' /dev/ttyS1 \
> 115200 crtscts modem updetach lock defaultroute debug
> 
> Control-C at the keyboard before the connection completes results in
> 
> Terminating on signal 2.
> 
> repeated, seemingly without end.  "kill -TERM $(pidof pppd)" doesn't
> terminate pppd or the messages.  "kill -KILL $(pidof pppd)" does both.
> 
> From /var/log/messages:
> Jan 23 11:19:34 corncob pppd[1849]: pppd 2.4.2 started by root, uid 0
> Jan 23 11:19:34 corncob pppd[1849]: Removed stale lock on ttyS1 (pid 1828)
> Jan 23 11:19:35 corncob pppd[1849]: Terminating on signal 2.
> Jan 23 11:19:50 corncob last message repeated 33707 times
> 
> The same thing occurs after a Control-C before completion of the
> usual connection script, which reports pppd's return status after
> "kill -KILL $(pidof pppd)":
> 
> The pppd return status is 137
> 
> Pppd 2.4.2b3 does correctly terminate with a Control-C by root at the
> keyboard.
> 
> Is it me or pppd 2.4.2? :)

I noticed that, but I patched pppd-2.4.2 to have callback with
portslave in "server mode". Because that I thought that the patch
is bad. Your message convinced me that that problem is in the stock
pppd, especially because the same patch applied to 2.4.2b3 didn't
show any problem.


  reply	other threads:[~2004-01-23 22:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23 20:53 pppd 2.4.2, Control-C bug? Clifford Kite
2004-01-23 22:23 ` Milan P. Stanic [this message]
2004-01-24 23:07 ` Paul Mackerras
2004-01-25  2:05 ` Clifford Kite

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=20040123222315.GA24521@rns-nis.co.yu \
    --to=mps@rns-nis.co.yu \
    --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