From e33d5860147b42661f723f27ecf7affbfc782fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Sun, 15 Jan 2023 01:33:14 +0000 Subject: [PATCH] pg: calling exit on signal handler is not allowed On the other hand, calling _exit is just fine. --- text-utils/pg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-utils/pg.c b/text-utils/pg.c index b309b4dca..adb3840be 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -219,7 +219,7 @@ static my_sighandler_t my_sigset(int sig, my_sighandler_t disp) /* Quit pg. */ static void __attribute__((__noreturn__)) quit(int status) { - exit(status < 0100 ? status : 077); + _exit(status < 0100 ? status : 077); } /* Usage message and similar routines. */