From d110ae8dd0e9fbbd1af320d60818b9e650a71e19 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 14 Dec 2010 11:52:42 -0500 Subject: 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 --- src/pkg/runtime/runtime.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/pkg/runtime/runtime.c') 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 -- cgit v1.3-5-g9baa