From de13900d71a968e859ab7aece4537dfd87c7185c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 22 Sep 2023 20:21:38 +0200 Subject: [PATCH] ldattach: don't call exit() from signal handler MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Instead use _exit(). Signed-off-by: Thomas Weißschuh --- sys-utils/ldattach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 0a6b6f2d2a..9c67eeec80 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -257,7 +257,7 @@ static int my_cfsetspeed(struct termios *ts, int speed) static void handler(int s) { dbg("got SIG %i -> exiting", s); - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } static void gsm0710_set_conf(int tty_fd) -- 2.47.2