34 lines
981 B
Diff
34 lines
981 B
Diff
|
|
From de13900d71a968e859ab7aece4537dfd87c7185c Mon Sep 17 00:00:00 2001
|
||
|
|
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
|
||
|
|
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=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
Instead use _exit().
|
||
|
|
|
||
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
||
|
|
Reference:https://github.com/util-linux/util-linux/commit/de13900d71a968e859ab7aece4537dfd87c7185c
|
||
|
|
Conflict:NA
|
||
|
|
---
|
||
|
|
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 0a6b6f2d2..9c67eeec8 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.33.0
|
||
|
|
|