"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Mark Jamsek <mark@jamsek.com>
Subject:
Re: tog SIGTERM
To:
gameoftrees@openbsd.org
Date:
Mon, 24 Oct 2022 21:29:50 +1100

Download raw body.

Thread
  • Stefan Sperling:

    tog SIGTERM

    • Mark Jamsek:

      tog SIGTERM

On 22-10-24 12:26PM, Stefan Sperling wrote:
> Whoops, tog catches SIGTERM, but due to copy-pasta the corresponding
> variable is not checked in the cancellation handler.
> 
> diff /home/stsp/src/got
> commit - 74ef8aae7e2bc5e35fe53a09877d13f1bc5ccaf5
> path + /home/stsp/src/got
> blob - d326fe7596a743dfd15243b75371bab5fd61911e
> file + tog/tog.c
> --- tog/tog.c
> +++ tog/tog.c
> @@ -795,7 +795,7 @@ tog_fatal_signal_received(void)
>  tog_fatal_signal_received(void)
>  {
>  	return (tog_sigpipe_received ||
> -	    tog_sigint_received || tog_sigint_received);
> +	    tog_sigint_received || tog_sigterm_received);
>  }
>  
>  static const struct got_error *
> 

ok

-- 
Mark Jamsek <fnc.bsdbox.org>
GPG: F2FF 13DE 6A06 C471 CA80  E6E2 2930 DC66 86EE CF68