From owner-freebsd-bugs Sat May 31 15:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA20090 for bugs-outgoing; Sat, 31 May 1997 15:30:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA20084; Sat, 31 May 1997 15:30:02 -0700 (PDT) Resent-Date: Sat, 31 May 1997 15:30:02 -0700 (PDT) Resent-Message-Id: <199705312230.PAA20084@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, kfurge@worldnet.att.net Received: from kcfhome.my.domain (196.bridgeton-001.mo.dial-access.att.net [207.146.192.196]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA19831 for ; Sat, 31 May 1997 15:21:43 -0700 (PDT) Received: (from kfurge@localhost) by kcfhome.my.domain (8.8.5/8.8.5) id RAA14372; Sat, 31 May 1997 17:21:34 -0500 (EST) Message-Id: <199705312221.RAA14372@kcfhome.my.domain> Date: Sat, 31 May 1997 17:21:34 -0500 (EST) From: kfurge@worldnet.att.net Reply-To: kfurge@worldnet.att.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/3733: getty with 'to' option causes pppd to die when invoked by auto-ppp code Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: