summaryrefslogtreecommitdiffstats
path: root/bin/dd/misc.c
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-24 01:55:17 +0000
committerdd <dd@FreeBSD.org>2001-06-24 01:55:17 +0000
commit7438ee8a47eae3653aa97349ee53cdb11bd206dd (patch)
treec880adb23175ca211ea100b3d79f814883dc631e /bin/dd/misc.c
parent945fa79a4aaddbac025c3342a1d7b8c78aa747f6 (diff)
downloadFreeBSD-src-7438ee8a47eae3653aa97349ee53cdb11bd206dd.zip
FreeBSD-src-7438ee8a47eae3653aa97349ee53cdb11bd206dd.tar.gz
Don't call exit(3) from a signal handler.
Obtained from: OpenBSD
Diffstat (limited to 'bin/dd/misc.c')
-rw-r--r--bin/dd/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 63c4e67..4fe4a41 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -104,6 +104,5 @@ terminate(sig)
int sig;
{
- /* XXX exit() shouldn't call exit() from a signal handler. */
- exit(sig == 0 ? 0 : 1);
+ _exit(sig == 0 ? 0 : 1);
}
OpenPOWER on IntegriCloud