top: Use _exit() instead of exit() in sighandler
authorMarek Polacek <mmpolacek@gmail.com>
Wed, 27 Oct 2010 00:25:16 +0000 (02:25 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Oct 2010 00:25:16 +0000 (02:25 +0200)
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/top.c

index 4f37878..f9106fa 100644 (file)
@@ -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 */
 
 /*