1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 //go:linkname runtime_ignoreHangup net.runtime_ignoreHangup
12 func runtime_ignoreHangup() {
13 getg().m
.ignoreHangup
= true
16 //go:linkname runtime_unignoreHangup net.runtime_unignoreHangup
17 func runtime_unignoreHangup(sig
string) {
18 getg().m
.ignoreHangup
= false
21 func ignoredNote(note
*byte) bool {
25 if gostringnocopy(note
) != "hangup" {
28 return getg().m
.ignoreHangup