Files
gio-patched/app/sigpipe_darwin.go
T
Elias Naur 060ae1cdf9 all: add //go:build lines
They're automatically added by Go 1.17 source formatters. This change
adds them all now.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2021-07-26 15:17:51 +02:00

20 lines
299 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
//go:build !go1.14
// +build !go1.14
// Work around golang.org/issue/33384, fixed in CL 191785,
// to be released in Go 1.14.
package app
import (
"os"
"os/signal"
"syscall"
)
func init() {
signal.Notify(make(chan os.Signal), syscall.SIGPIPE)
}