diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-02 08:12:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-02 08:12:11 +0000 |
commit | b82489ad3d4a69155c5fad80f9d79bca8e27a75e (patch) | |
tree | f35f09da5f0fc631158196deef506e3134507bfb /libexec/getty | |
parent | 503fc5938f98e8ea2938a56a89589278c871658c (diff) |
if getty to# parameter is used, pp option has timeout problem; kfurge@worldnet.att.net, freebsd pr#3733
Diffstat (limited to 'libexec/getty')
-rw-r--r-- | libexec/getty/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c index a84ad3b8f40..58c2ea660d8 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/ -static char rcsid[] = "$Id: main.c,v 1.7 1997/04/06 08:43:41 deraadt Exp $"; +static char rcsid[] = "$Id: main.c,v 1.8 1997/06/02 08:12:10 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -295,6 +295,9 @@ main(argc, argv) 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); |