Linux PPP protocol development
 help / color / mirror / Atom feed
* pppd 2.4.2, Control-C bug?
@ 2004-01-23 20:53 Clifford Kite
  2004-01-23 22:23 ` Milan P. Stanic
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Clifford Kite @ 2004-01-23 20:53 UTC (permalink / raw)
  To: linux-ppp

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? :)

--
Clifford Kite                                 http://ckite.no-ip.net




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-25  2:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 20:53 pppd 2.4.2, Control-C bug? Clifford Kite
2004-01-23 22:23 ` Milan P. Stanic
2004-01-24 23:07 ` Paul Mackerras
2004-01-25  2:05 ` Clifford Kite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox