pg: calling exit on signal handler is not allowed

On the other hand, calling _exit is just fine.
This commit is contained in:
Cristian Rodríguez 2023-01-15 01:33:14 +00:00
parent 518a0ad4d9
commit e33d586014

View file

@ -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. */