Commit a51b6ccf authored by David du Colombier's avatar David du Colombier

cmd/dist: fatal shouldn't print errstr on Plan 9

During change 1864 discussion, Russ Cox pointed out
the fatal function shouldn't print errstr.

Change-Id: Icd71ec04be9c944bc235b8b198158465172e4fde
Reviewed-on: https://go-review.googlesource.com/2030Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 20dce047
......@@ -504,19 +504,13 @@ done:
void
fatal(char *msg, ...)
{
char buf[ERRMAX];
va_list arg;
rerrstr(buf, sizeof buf);
fflush(stdout);
fprintf(stderr, "go tool dist: ");
va_start(arg, msg);
vfprintf(stderr, msg, arg);
va_end(arg);
if(buf[0])
fprintf(stderr, ": %s", buf);
fprintf(stderr, "\n");
bgwait();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment