]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ldattach: don't call exit() from signal handler
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:21:38 +0000 (20:21 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:30:12 +0000 (20:30 +0200)
Instead use _exit().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
sys-utils/ldattach.c

index 0a6b6f2d2a7183970a7641f28924d5863f901d3c..9c67eeec80ffdcaf498273c25038f47f9e3128d4 100644 (file)
@@ -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)