mirror of
https://github.com/golang/go
synced 2024-11-19 04:44:41 -07:00
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/2030 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
20dce04742
commit
a51b6ccfea
6
src/cmd/dist/plan9.c
vendored
6
src/cmd/dist/plan9.c
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user