Reset alarm before invoking ppplogin.
PR: 3733 Reviewed by: Submitted by: kfurge@worldnet.att.net Obtained from:
This commit is contained in:
parent
fcb71cf698
commit
bd6bc7645a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user