diff options
author | Marek Polacek <mmpolacek@gmail.com> | 2010-10-27 02:25:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-27 02:25:16 +0200 |
commit | 3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c (patch) | |
tree | dddf3b34b92dd93a3834a01fa64bd5ecb9b51037 | |
parent | 55a046b4dbca9df876e9bb67a16dde2ee3d9adb0 (diff) | |
download | busybox-w32-3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c.tar.gz busybox-w32-3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c.tar.bz2 busybox-w32-3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c.zip |
top: Use _exit() instead of exit() in sighandler
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | procps/top.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c index 4f37878de..f9106fac7 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -649,8 +649,9 @@ static void reset_term(void) | |||
649 | static void sig_catcher(int sig UNUSED_PARAM) | 649 | static void sig_catcher(int sig UNUSED_PARAM) |
650 | { | 650 | { |
651 | reset_term(); | 651 | reset_term(); |
652 | exit(EXIT_FAILURE); | 652 | _exit(EXIT_FAILURE); |
653 | } | 653 | } |
654 | |||
654 | #endif /* FEATURE_USE_TERMIOS */ | 655 | #endif /* FEATURE_USE_TERMIOS */ |
655 | 656 | ||
656 | /* | 657 | /* |