aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/windows/thread.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-04-25 16:58:00 -0400
committerRuss Cox <rsc@golang.org>2011-04-25 16:58:00 -0400
commit8698bb6c8ca104f3f0fae437d5e609f75c4ef5b2 (patch)
treec7b3b73eb61266be262c2b2ea6348b89cf83c558 /src/pkg/runtime/windows/thread.c
parent41e5de21847f34684966615899ce42dfd76be16f (diff)
downloadgo-8698bb6c8ca104f3f0fae437d5e609f75c4ef5b2.tar.xz
runtime: turn "too many EPIPE" into real SIGPIPE
Tested on Linux and OS X, amd64 and 386. R=r, iant CC=golang-dev https://golang.org/cl/4452046
Diffstat (limited to 'src/pkg/runtime/windows/thread.c')
-rw-r--r--src/pkg/runtime/windows/thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c
index aedd24200a..2ce92dcfbf 100644
--- a/src/pkg/runtime/windows/thread.c
+++ b/src/pkg/runtime/windows/thread.c
@@ -378,3 +378,9 @@ runtime·compilecallback(Eface fn, bool cleanstack)
return ret;
}
+
+void
+os·sigpipe(void)
+{
+ runtime·throw("too many writes on closed pipe");
+}