summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-03-30 22:20:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-03-30 22:20:54 +0000
commit8a405c4437e7c02820a23b21c3a63f6757d14cfc (patch)
treedaf7916984c888459312783ae855a2dbdf8141db /usr.bin
parentb039e74a6821ba0ca56706307c13dbc83063d802 (diff)
Use _exit() from signal handler so we don't call atexit handlers or
flush stdio.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sort/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c
index 5a68256db74..1d4da6abd7f 100644
--- a/usr.bin/sort/sort.c
+++ b/usr.bin/sort/sort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sort.c,v 1.49 2015/03/30 22:20:18 millert Exp $ */
+/* $OpenBSD: sort.c,v 1.50 2015/03/30 22:20:53 millert Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -386,7 +386,7 @@ sig_handler(int sig __unused)
{
clear_tmp_files();
- exit(2);
+ _exit(2);
}
/*