aboutsummaryrefslogtreecommitdiff
path: root/toys/other/login.c
diff options
context:
space:
mode:
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);