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 4f37878de356c7d6bac866d4d09dea55197a9390..f9106fac7af6c067222a701c29916773752bbffd 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 */
 
 /*