From: Ian Lance Taylor Date: Tue, 5 Jan 2016 01:18:14 +0000 (-0800) Subject: doc: mention new SIGPIPE behavior in 1.6 release notes X-Git-Tag: go1.6beta2~139 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2a756625218eb795200fb5e4cc2d59b6bb0e4c60;p=gostls13.git doc: mention new SIGPIPE behavior in 1.6 release notes Update #11845. Change-Id: I1c248dc48abc62e51836b9ba50d6deb89706c730 Reviewed-on: https://go-review.googlesource.com/18226 Reviewed-by: Russ Cox --- diff --git a/doc/go1.6.html b/doc/go1.6.html index 3dee58fb2d..b4ac96ef96 100644 --- a/doc/go1.6.html +++ b/doc/go1.6.html @@ -747,6 +747,26 @@ now return correct results when inquiring about an SyscallError. +
  • +On Unix-like systems, when a write +to os.Stdout +or os.Stderr (more precisely, an os.File +opened for file descriptor 1 or 2) fails due to a broken pipe error, +the program will raise a SIGPIPE signal. +By default this will cause the program to exit; this may be changed by +calling the +os/signal +Notify function +for syscall.SIGPIPE. +A write to a broken pipe on a file descriptor other 1 or 2 will simply +return syscall.EPIPE (possibly wrapped in +os.PathError +and/or os.SyscallError) +to the caller. +The old behavior of raising an uncatchable SIGPIPE signal +after 10 consecutive writes to a broken pipe no longer occurs. +
  • +
  • In the os/exec package, Cmd's