pg: calling exit on signal handler is not allowed
On the other hand, calling _exit is just fine.
This commit is contained in:
parent
518a0ad4d9
commit
e33d586014
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue