Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <mmpolacek@gmail.com>2010-10-27 04:25:16 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-27 04:25:16 +0400
commit3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c (patch)
treedddf3b34b92dd93a3834a01fa64bd5ecb9b51037 /procps/top.c
parent55a046b4dbca9df876e9bb67a16dde2ee3d9adb0 (diff)
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>
Diffstat (limited to 'procps/top.c')
-rw-r--r--procps/top.c3
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)
static void sig_catcher(int sig UNUSED_PARAM)
{
reset_term();
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
+
#endif /* FEATURE_USE_TERMIOS */
/*