Reset alarm before invoking ppplogin.

PR: 3733
Reviewed by:
Submitted by: kfurge@worldnet.att.net
Obtained from:
This commit is contained in:
David Nugent 1997-06-03 12:56:47 +00:00
parent 6670f8f6e7
commit 85f5c8500d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26415

View File

@ -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$";
static char rcsid[] = "$Id: main.c,v 1.19 1997/02/22 14:21:39 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -349,6 +349,8 @@ main(argc, argv)
alarm(TO);
}
if ((rval = getname()) == 2) {
oflush();
alarm(0);
execle(PP, "ppplogin", ttyn, (char *) 0, env);
syslog(LOG_ERR, "%s: %m", PP);
exit(1);