mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +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 New Issue
Block a user