forked from pool/glibc
35b77f97b8
Copy from Base:System/glibc based on submit request 24314 from user pbaudis OBS-URL: https://build.opensuse.org/request/show/24314 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=13
19 lines
566 B
Diff
19 lines
566 B
Diff
On extremely loaded systems, the default timeout may not be enough and some
|
|
entries may not appear in the utmp log. With 30s login delay, the system
|
|
should still stay usable for repair in case the utmp locking somehow breaks
|
|
down.
|
|
|
|
Index: login/utmp_file.c
|
|
===================================================================
|
|
--- login/utmp_file.c.orig
|
|
+++ login/utmp_file.c
|
|
@@ -45,7 +45,7 @@ static struct utmp last_entry;
|
|
|
|
/* Locking timeout. */
|
|
#ifndef TIMEOUT
|
|
-# define TIMEOUT 1
|
|
+# define TIMEOUT 30
|
|
#endif
|
|
|
|
/* Do-nothing handler for locking timeout. */
|