summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <mmpolacek@gmail.com>2010-10-27 00:25:16 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-10-27 00:25:16 (GMT)
commit3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c (patch)
treedddf3b34b92dd93a3834a01fa64bd5ecb9b51037
parent55a046b4dbca9df876e9bb67a16dde2ee3d9adb0 (diff)
downloadbusybox-3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c.tar.gz
busybox-3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c
index 4f37878..f9106fa 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -649,8 +649,9 @@ static void reset_term(void)
static void sig_catcher(int sig UNUSED_PARAM)
{
reset_term();
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
+
#endif /* FEATURE_USE_TERMIOS */
/*