aboutsummaryrefslogtreecommitdiff
path: root/vendor/gioui.org/app/sigpipe_darwin.go
blob: aca19b74d09c8d1ee31a7c4b8df13c64df8713e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 (
	"os"
	"os/signal"
	"syscall"
)

func init() {
	signal.Notify(make(chan os.Signal), syscall.SIGPIPE)
}