From: Cristian Rodríguez Date: Sun, 15 Jan 2023 01:33:14 +0000 (+0000) Subject: pg: calling exit on signal handler is not allowed X-Git-Tag: v2.39-rc1~123^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e33d5860147b42661f723f27ecf7affbfc782fe6;p=thirdparty%2Futil-linux.git pg: calling exit on signal handler is not allowed On the other hand, calling _exit is just fine. --- diff --git a/text-utils/pg.c b/text-utils/pg.c index b309b4dcae..adb3840be2 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. */