diff options
| author | Russ Cox <rsc@golang.org> | 2010-12-14 11:52:42 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-12-14 11:52:42 -0500 |
| commit | d110ae8dd0e9fbbd1af320d60818b9e650a71e19 (patch) | |
| tree | c0cc1db30e75ec7b061b83a288bac15b5f4228da /src/pkg/runtime/runtime.c | |
| parent | 43f459ce51c5e43b7b358a6d976e940c4be9d4fa (diff) | |
| download | go-d110ae8dd0e9fbbd1af320d60818b9e650a71e19.tar.xz | |
runtime: write only to standard error
Will mail a warning to golang-nuts once this is submitted.
R=r, niemeyer
CC=golang-dev
https://golang.org/cl/3573043
Diffstat (limited to 'src/pkg/runtime/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index a2e31d806f..ad5e97f497 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -9,7 +9,6 @@ enum { }; int32 runtime·panicking = 0; -int32 runtime·fd = 1; int32 runtime·gotraceback(void) @@ -25,7 +24,6 @@ runtime·gotraceback(void) void runtime·dopanic(int32 unused) { - runtime·fd = 2; if(runtime·panicking) { runtime·printf("double panic\n"); runtime·exit(3); @@ -70,7 +68,6 @@ runtime·throwinit(void) void runtime·throw(int8 *s) { - runtime·fd = 2; runtime·printf("throw: %s\n", s); runtime·dopanic(0); *(int32*)0 = 0; // not reached |
