From 3010ec11aedf8cb61f8f70d802a2f192375970d9 Mon Sep 17 00:00:00 2001 From: Samanta Navarro Date: Fri, 28 Apr 2023 11:56:42 +0000 Subject: [PATCH] login_prompt: Use _exit in signal handler Calling exit is not signal safe. Signed-off-by: Samanta Navarro --- libmisc/loginprompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmisc/loginprompt.c b/libmisc/loginprompt.c index f1efa3f6..2efafd11 100644 --- a/libmisc/loginprompt.c +++ b/libmisc/loginprompt.c @@ -22,7 +22,7 @@ static void login_exit (unused int sig) { - exit (EXIT_FAILURE); + _exit (EXIT_FAILURE); } /*