aboutsummaryrefslogtreecommitdiff
path: root/toys/other/login.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-10 11:07:28 -0500
committerRob Landley <rob@landley.net>2015-03-10 11:07:28 -0500
commitc776bde13bb2767db2943bc3b02df737a465c035 (patch)
tree7d8c2283641fa39248a59ecc17897ca2bd547e33 /toys/other/login.c
parent8a3c0edadbf915b9d2f318412587f6107a8e6d42 (diff)
downloadtoybox-c776bde13bb2767db2943bc3b02df737a465c035.tar.gz
Use xsignal() instead of signal().
Diffstat (limited to 'toys/other/login.c')
-rw-r--r--toys/other/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/login.c b/toys/other/login.c
index 0d6d3640..837dd977 100644
--- a/toys/other/login.c
+++ b/toys/other/login.c
@@ -156,7 +156,7 @@ void login_main(void)
if (!isatty(0) || !isatty(1) || !isatty(2)) error_exit("no tty");
openlog("login", LOG_PID | LOG_CONS, LOG_AUTH);
- signal(SIGALRM, login_timeout_handler);
+ xsignal(SIGALRM, login_timeout_handler);
alarm(TT.login_timeout = 60);
for (ss = forbid; *ss; ss++) unsetenv(*ss);