From: Stefan Sperling Subject: silence harmless errors on tog exit To: gameoftrees@openbsd.org Date: Mon, 24 Oct 2022 12:33:03 +0200 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? 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; }