[PATCH] top: Use _exit() instead of exit() in sighandler

Denys Vlasenko vda.linux at googlemail.com
Wed Oct 27 00:26:06 UTC 2010


On Tuesday 26 October 2010 23:59, Marek Polacek wrote:
> 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 */
> 

The patch is whitespace-damaged (tabs expanded to spaces).
-- 
vda


More information about the busybox mailing list