Date: Sat, 31 May 1997 17:21:34 -0500 (EST) From: kfurge@worldnet.att.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/3733: getty with 'to' option causes pppd to die when invoked by auto-ppp code Message-ID: <199705312221.RAA14372@kcfhome.my.domain> Resent-Message-ID: <199705312230.PAA20084@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3733
>Category: bin
>Synopsis: getty with 'to' option causes pppd to die when invoked by auto-ppp code
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat May 31 15:30:01 PDT 1997
>Last-Modified:
>Originator: K.C. Furge
>Organization:
Home user
>Release: FreeBSD 2.2.1-RELEASE i386
>Environment:
/etc/gettytab entry:
dial.115200:\
:np:to#30:sp#115200:pp=/usr/sbin/pppd
>Description:
With the timeout option enabled in a gettytab entry (:to#30:) and pppd
invoked when getty automatically detects a ppp header, pppd dies with
SIGALRM when the timeout occurrs.
>How-To-Repeat:
Add the ':to#30:' option to a getty dialup config. Set the 'pp' option to
automatically start pppd when getty detects a ppp frame. Pppd will then
die when getty should have died due to a timeout.
>Fix:
Apply the following patch to main.c of the getty source. This patch is
relative to -current as of May 31, 1997.
*** main.c.orig Sat May 31 14:42:56 1997
--- main.c Sat May 31 14:43:01 1997
***************
*** 349,354 ****
--- 349,357 ----
alarm(TO);
}
if ((rval = getname()) == 2) {
+ oflush();
+ alarm(0);
+ signal(SIGALRM, SIG_DFL);
execle(PP, "ppplogin", ttyn, (char *) 0, env);
syslog(LOG_ERR, "%s: %m", PP);
exit(1);
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705312221.RAA14372>
