Commit Diff


commit - dd9026fb89b06cb5c386738b9991cdc6d95ce9b0
commit + 27a7eb2334fa33dee50546dc3b0d8cd4eb770923
blob - b3a3022252655caab22a545a843f5c158246a2a5
blob + 142e928085820636cbb29c1fa78ac6548736871b
--- tog/tog.c
+++ tog/tog.c
@@ -9383,7 +9383,11 @@ 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 &&
+	    error->code != GOT_ERR_PRIVSEP_PIPE &&
+	    !(error->code == GOT_ERR_ERRNO && errno == EINTR))
 		fprintf(stderr, "%s: %s\n", getprogname(), error->msg);
 	return 0;
 }