app: disable darwin SIGPIPE workaround from Go 1.14

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 14:21:02 +02:00
parent 52fedc27a2
commit 4475bf10bf
+5 -1
View File
@@ -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)
}