From 3c99d59b5dd4a4dfbcdf5b98f7a9944bff9c925c Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 27 Oct 2010 02:25:16 +0200 Subject: [PATCH] top: Use _exit() instead of exit() in sighandler Signed-off-by: Marek Polacek Signed-off-by: Denys Vlasenko --- procps/top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ /* -- 2.25.1