Source file
src/runtime/net_plan9.go
1
2
3
4
5 package runtime
6
7 import (
8 _ "unsafe"
9 )
10
11
12 func runtime_ignoreHangup() {
13 getg().m.ignoreHangup = true
14 }
15
16
17
18
19
20 func runtime_unignoreHangup(notes int) {
21 for ; notes > 0; notes-- {
22 sleep(0)
23 }
24 getg().m.ignoreHangup = false
25 }
26
27 func ignoredNote(note *byte) bool {
28 if note == nil {
29 return false
30 }
31 if gostringnocopy(note) != "hangup" {
32 return false
33 }
34 return getg().m.ignoreHangup
35 }
36
View as plain text