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

From:
Mark Jamsek <mark@jamsek.com>
Subject:
Re: silence harmless errors on tog exit
To:
gameoftrees@openbsd.org
Date:
Mon, 24 Oct 2022 21:49:23 +1100

Download raw body.

Thread
On 22-10-24 12:33PM, Stefan Sperling wrote:
> Hide additional error messages which can show up if tog gets a Ctrl-C.
> Users don't need to be informed about these errors.
> 
> ok?

yes, ok

> diff /home/stsp/src/got
> commit - 74ef8aae7e2bc5e35fe53a09877d13f1bc5ccaf5
> path + /home/stsp/src/got
> blob - d326fe7596a743dfd15243b75371bab5fd61911e
> file + tog/tog.c
> --- tog/tog.c
> +++ tog/tog.c
> @@ -9378,7 +9378,8 @@ main(int argc, char *argv[])
>  		free(cmd_argv);
>  	}
>  
> -	if (error && error->code != GOT_ERR_CANCELLED)
> +	if (error && error->code != GOT_ERR_CANCELLED &&
> +	    error->code != GOT_ERR_EOF && error->code != GOT_ERR_PRIVSEP_EXIT)
>  		fprintf(stderr, "%s: %s\n", getprogname(), error->msg);
>  	return 0;
>  }
> 
> 

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