login_prompt: Use _exit in signal handler

Calling exit is not signal safe.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
This commit is contained in:
Samanta Navarro 2023-04-28 11:56:42 +00:00 committed by Serge Hallyn
parent 8fc8de382a
commit 3010ec11ae

View File

@ -22,7 +22,7 @@
static void login_exit (unused int sig) static void login_exit (unused int sig)
{ {
exit (EXIT_FAILURE); _exit (EXIT_FAILURE);
} }
/* /*