From 4475bf10bff4b08e952cc0837dcf1ca5f3a9b3dc Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 14 Oct 2019 14:21:02 +0200 Subject: [PATCH] app: disable darwin SIGPIPE workaround from Go 1.14 Signed-off-by: Elias Naur --- app/sigpipe_darwin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/sigpipe_darwin.go b/app/sigpipe_darwin.go index c1ecaecf..aca19b74 100644 --- a/app/sigpipe_darwin.go +++ b/app/sigpipe_darwin.go @@ -1,5 +1,10 @@ // SPDX-License-Identifier: Unlicense OR MIT +// +build !go1.14 + +// Work around golang.org/issue/33384, fixed in CL 191785, +// to be released in Go 1.14. + package app import ( @@ -9,6 +14,5 @@ import ( ) func init() { - // Work around golang.org/issue/33384 signal.Notify(make(chan os.Signal), syscall.SIGPIPE) }