Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for signal_disable (0.14 sec)

  1. src/runtime/sigqueue.go

    	i &^= 1 << (s & 31)
    	atomic.Store(&sig.ignored[s/32], i)
    
    	sigenable(s)
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_disable os/signal.signal_disable
    func signal_disable(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigdisable(s)
    
    	w := sig.wanted[s/32]
    	w &^= 1 << (s & 31)
    	atomic.Store(&sig.wanted[s/32], w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    		}
    	}
    }
    
    // sigdisable disables the Go signal handler for the signal sig.
    // It is only called while holding the os/signal.handlers lock,
    // via os/signal.disableSignal and signal_disable.
    func sigdisable(sig uint32) {
    	if sig >= uint32(len(sigtable)) {
    		return
    	}
    
    	// SIGPROF is handled specially for profiling.
    	if sig == _SIGPROF {
    		return
    	}
    
    	t := &sigtable[sig]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top