From 2a756625218eb795200fb5e4cc2d59b6bb0e4c60 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 4 Jan 2016 17:18:14 -0800 Subject: [PATCH] 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 --- doc/go1.6.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- 2.50.0