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:
delphij 2010-04-27 17:57:04 +00:00
parent 8c986a2f88
commit 16ffa87683

View File

@ -1178,7 +1178,7 @@ sigint_handler(int signo __unused)
if (remove_file != NULL) if (remove_file != NULL)
unlink(remove_file); unlink(remove_file);
exit(2); _exit(2);
} }
#endif #endif