diff options
author | dd <dd@FreeBSD.org> | 2001-06-24 01:55:17 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-06-24 01:55:17 +0000 |
commit | 7438ee8a47eae3653aa97349ee53cdb11bd206dd (patch) | |
tree | c880adb23175ca211ea100b3d79f814883dc631e /bin/dd | |
parent | 945fa79a4aaddbac025c3342a1d7b8c78aa747f6 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | bin/dd/misc.c | 3 |
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); } |