mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
1edd4fcd23
commit
637bfa488b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207284
|
@ -1178,7 +1178,7 @@ sigint_handler(int signo __unused)
|
|||
|
||||
if (remove_file != NULL)
|
||||
unlink(remove_file);
|
||||
exit(2);
|
||||
_exit(2);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue