mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app: disable darwin SIGPIPE workaround from Go 1.14
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
// SPDX-License-Identifier: Unlicense OR MIT
|
// 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
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -9,6 +14,5 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// Work around golang.org/issue/33384
|
|
||||||
signal.Notify(make(chan os.Signal), syscall.SIGPIPE)
|
signal.Notify(make(chan os.Signal), syscall.SIGPIPE)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user