* src/sulogin.c: Ignore the return value of signal().

This commit is contained in:
nekral-guest 2008-06-13 21:30:09 +00:00
parent dd8a09ce8d
commit 87ba782106
2 changed files with 7 additions and 3 deletions

View File

@ -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>
* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is

View File

@ -172,8 +172,8 @@ static RETSIGTYPE catch_signals (unused int sig)
(void) strcpy (name, "root"); /* KLUDGE!!! */
signal (SIGALRM, catch_signals); /* exit if the timer expires */
alarm (ALARM); /* only wait so long ... */
(void) signal (SIGALRM, catch_signals); /* exit if the timer expires */
(void) alarm (ALARM); /* only wait so long ... */
while (true) { /* repeatedly get login/password pairs */
pw_entry (name, &pwent); /* get entry from password file */
@ -231,7 +231,7 @@ static RETSIGTYPE catch_signals (unused int sig)
}
strzero (pass);
(void) alarm (0);
signal (SIGALRM, SIG_DFL);
(void) signal (SIGALRM, SIG_DFL);
environ = newenvp; /* make new environment active */
puts (_("Entering System Maintenance Mode"));