From: Marek Polacek Date: Wed, 27 Oct 2010 00:25:16 +0000 (+0200) Subject: top: Use _exit() instead of exit() in sighandler X-Git-Tag: 1_18_0~66^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c;p=oweals%2Fbusybox.git top: Use _exit() instead of exit() in sighandler Signed-off-by: Marek Polacek Signed-off-by: Denys Vlasenko --- 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 */ /*