~eliasnaur/gio

ref: 2f8833d985df8be444b4a8968b59448c538ec3cc gio/app/sigpipe_darwin.go -rw-r--r-- 280 bytes
2f8833d9Elias Naur app/internal/window: [X11] avoid -d=checkptr check failures 1 year, 6 months ago
                                                                                
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)
}