We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dc6dd commit 77aa209Copy full SHA for 77aa209
src/runtime/os_darwin.go
@@ -118,10 +118,15 @@ func sigNoteWakeup(*note) {
118
119
// sigNoteSleep waits for a note created by sigNoteSetup to be woken.
120
func sigNoteSleep(*note) {
121
- entersyscallblock()
122
- var b byte
123
- read(sigNoteRead, unsafe.Pointer(&b), 1)
124
- exitsyscall()
+ for {
+ var b byte
+ entersyscallblock()
+ n := read(sigNoteRead, unsafe.Pointer(&b), 1)
125
+ exitsyscall()
126
+ if n != -_EINTR {
127
+ return
128
+ }
129
130
}
131
132
// BSD interface for threading.
0 commit comments