summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-04-27 17:57:04 +0000
committerdelphij <delphij@FreeBSD.org>2010-04-27 17:57:04 +0000
commit16ffa87683fefed796ccdad41a11b885b0688b24 (patch)
tree96b2d32082e50a87c9d443876264f2ed2907b15f
parent8c986a2f888166ed91becbd51c87ff00b554678c (diff)
downloadFreeBSD-src-16ffa87683fefed796ccdad41a11b885b0688b24.zip
FreeBSD-src-16ffa87683fefed796ccdad41a11b885b0688b24.tar.gz
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
-rw-r--r--usr.bin/gzip/gzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c
index 9503762..de9fe80 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
OpenPOWER on IntegriCloud