From 637bfa488b897727534ae4ac65851cb4334cce72 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 27 Apr 2010 17:57:04 +0000 Subject: [PATCH] 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 MFC after: 13 days --- usr.bin/gzip/gzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c index 9503762a5873..de9fe809aa19 100644 --- a/usr.bin/gzip/gzip.c +++ b/usr.bin/gzip/gzip.c @@ -1178,7 +1178,7 @@ sigint_handler(int signo __unused) if (remove_file != NULL) unlink(remove_file); - exit(2); + _exit(2); } #endif