diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-04-07 05:37:15 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-04-07 05:37:15 +0000 |
| commit | ac082e91fc52d1ece9f6cc84ffcc4aba047fa749 (patch) | |
| tree | 7a8e786fbc80f8d30c9493e0696cd77c07735e0b /libexec | |
| parent | 64f0483a33afcdfb32dbc5e535a2839a68d5c342 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -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 55e9314e49aa..aa3ddc102d90 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)from: main.c 8.1 (Berkeley) 6/20/93"; #endif static const char rcsid[] = - "$Id: main.c,v 1.23 1998/10/08 23:14:02 jkh Exp $"; + "$Id: main.c,v 1.23.2.1 1999/04/07 05:35:25 peter Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -367,6 +367,9 @@ main(argc, argv) if (rval == 2) { oflush(); alarm(0); + limit.rlim_max = RLIM_INFINITY; + limit.rlim_cur = RLIM_INFINITY; + (void)setrlimit(RLIMIT_CPU, &limit); execle(PP, "ppplogin", ttyn, (char *) 0, env); syslog(LOG_ERR, "%s: %m", PP); exit(1); |
