1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00
go/src/os/signal
Ian Lance Taylor 58c73de7d0 os, runtime: better EPIPE behavior for command line programs
Old behavior: 10 consecutive EPIPE errors on any descriptor cause the
program to exit with a SIGPIPE signal.

New behavior: an EPIPE error on file descriptors 1 or 2 cause the
program to raise a SIGPIPE signal.  If os/signal.Notify was not used to
catch SIGPIPE signals, this will cause the program to exit with SIGPIPE.
An EPIPE error on a file descriptor other than 1 or 2 will simply be
returned from Write.

Fixes #11845.
Update #9896.

Change-Id: Ic85d77e386a8bb0255dc4be1e4b3f55875d10f18
Reviewed-on: https://go-review.googlesource.com/18151
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-05 00:32:50 +00:00
..
doc.go os, runtime: better EPIPE behavior for command line programs 2016-01-05 00:32:50 +00:00
example_test.go
sig.s
signal_plan9_test.go
signal_plan9.go
signal_test.go
signal_unix.go
signal_windows_test.go
signal.go os/signal: document signal handling 2015-12-17 16:59:39 +00:00