We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02296bc commit e403736Copy full SHA for e403736
src/runtime/signal_unix.go
@@ -202,7 +202,10 @@ func sigenable(sig uint32) {
202
enableSigChan <- sig
203
<-maskUpdatedChan
204
if atomic.Cas(&handlingSig[sig], 0, 1) {
205
- // atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
+ h := getsig(sig)
206
+ if h != _SIG_IGN {
207
+ atomic.Storeuintptr(&fwdSig[sig], h)
208
+ }
209
setsig(sig, abi.FuncPCABIInternal(sighandler))
210
}
211
@@ -232,7 +235,10 @@ func sigdisable(sig uint32) bool {
232
235
// we should remove the one we installed.
233
236
if sigInstallGoHandler(sig) {
234
237
238
239
240
241
242
243
244
return false
0 commit comments