Commit b36c576c authored by Kirk Webb's avatar Kirk Webb

Bump timeout for genlastlog from 15 to 30 seconds.

APT seems to have weird lag related to reading the 'logins'
log file across NFS. This appears to be correlated to times
when someone/something is trying to break into apt ops
using brute force login trials.
parent f852aa5c
......@@ -170,7 +170,7 @@ main(int argc, char **argv)
* Use setjmp and timer to prevent NFS lockup.
*/
if (setjmp(deadline) == 0) {
alarm(15);
alarm(30);
if ((infp = gzopen(buf, "r")) == NULL) {
syslog(LOG_ERR, "Opening %s: %m", buf);
......@@ -188,7 +188,7 @@ main(int argc, char **argv)
sprintf(buf, "%s/%s", USERSVAR, LOGINS);
if (setjmp(deadline) == 0) {
alarm(15);
alarm(30);
if ((infp = gzopen(buf, "r")) == NULL) {
syslog(LOG_ERR, "Opening %s: %m", buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment