* src/sulogin.c: Ignore the return value of signal().
This commit is contained in:
parent
dd8a09ce8d
commit
87ba782106
@ -1,3 +1,7 @@
|
|||||||
|
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/sulogin.c: Ignore the return value of signal().
|
||||||
|
|
||||||
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
|
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
|
* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
|
||||||
|
@ -172,8 +172,8 @@ static RETSIGTYPE catch_signals (unused int sig)
|
|||||||
|
|
||||||
(void) strcpy (name, "root"); /* KLUDGE!!! */
|
(void) strcpy (name, "root"); /* KLUDGE!!! */
|
||||||
|
|
||||||
signal (SIGALRM, catch_signals); /* exit if the timer expires */
|
(void) signal (SIGALRM, catch_signals); /* exit if the timer expires */
|
||||||
alarm (ALARM); /* only wait so long ... */
|
(void) alarm (ALARM); /* only wait so long ... */
|
||||||
|
|
||||||
while (true) { /* repeatedly get login/password pairs */
|
while (true) { /* repeatedly get login/password pairs */
|
||||||
pw_entry (name, &pwent); /* get entry from password file */
|
pw_entry (name, &pwent); /* get entry from password file */
|
||||||
@ -231,7 +231,7 @@ static RETSIGTYPE catch_signals (unused int sig)
|
|||||||
}
|
}
|
||||||
strzero (pass);
|
strzero (pass);
|
||||||
(void) alarm (0);
|
(void) alarm (0);
|
||||||
signal (SIGALRM, SIG_DFL);
|
(void) signal (SIGALRM, SIG_DFL);
|
||||||
environ = newenvp; /* make new environment active */
|
environ = newenvp; /* make new environment active */
|
||||||
|
|
||||||
puts (_("Entering System Maintenance Mode"));
|
puts (_("Entering System Maintenance Mode"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user