[PATCH] top: Use _exit() instead of exit() in sighandler
Marek Polacek
mmpolacek at gmail.com
Tue Oct 26 21:59:05 UTC 2010
Use _exit() instead of exit() in sighandler. No logic changes.
Signed-off-by: Marek Polacek <mmpolacek at gmail.com>
---
procps/top.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/procps/top.c b/procps/top.c
index 4f37878..b5a4c2c 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -649,7 +649,7 @@ 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 */
--
1.7.3.2
More information about the busybox
mailing list