Use _exit(2) system call directly instead of using exit(3) in signal
handler, as the latter is not guaranteed to be signal safe, and we do not really care about flushing the stream during SIGINT. Suggested by: Maxim Konovalov <maxim.konovalov gmail com> MFC after: 13 days
This commit is contained in:
parent
8c986a2f88
commit
16ffa87683
@ -1178,7 +1178,7 @@ sigint_handler(int signo __unused)
|
||||
|
||||
if (remove_file != NULL)
|
||||
unlink(remove_file);
|
||||
exit(2);
|
||||
_exit(2);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user