Skip to content

Commit 02296bc

Browse files
committed
TMP: Don't override fwdSig
1 parent 67c6c82 commit 02296bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/signal_unix.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func sigenable(sig uint32) {
202202
enableSigChan <- sig
203203
<-maskUpdatedChan
204204
if atomic.Cas(&handlingSig[sig], 0, 1) {
205-
atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
205+
// atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
206206
setsig(sig, abi.FuncPCABIInternal(sighandler))
207207
}
208208
}
@@ -232,7 +232,7 @@ func sigdisable(sig uint32) bool {
232232
// we should remove the one we installed.
233233
if sigInstallGoHandler(sig) {
234234
if atomic.Cas(&handlingSig[sig], 0, 1) {
235-
atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
235+
// atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
236236
setsig(sig, abi.FuncPCABIInternal(sighandler))
237237
}
238238
return false

0 commit comments

Comments
 (0)