Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for signal_disable (0.22 sec)

  1. src/os/signal/signal_plan9.go

    // license that can be found in the LICENSE file.
    
    package signal
    
    import (
    	"os"
    	"syscall"
    )
    
    var sigtab = make(map[os.Signal]int)
    
    // Defined by the runtime package.
    func signal_disable(uint32)
    func signal_enable(uint32)
    func signal_ignore(uint32)
    func signal_ignored(uint32) bool
    func signal_recv() string
    
    func init() {
    	watchSignalLoop = loop
    }
    
    func loop() {
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 01 23:55:34 UTC 2020
    - 1K bytes
    - Viewed (0)
  2. src/os/signal/signal_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1 || windows
    
    package signal
    
    import (
    	"os"
    	"syscall"
    )
    
    // Defined by the runtime package.
    func signal_disable(uint32)
    func signal_enable(uint32)
    func signal_ignore(uint32)
    func signal_ignored(uint32) bool
    func signal_recv() uint32
    
    func loop() {
    	for {
    		process(syscall.Signal(signal_recv()))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/runtime/sigqueue_plan9.go

    		sig.inuse = true // enable reception of signals; cannot disable
    		noteclear(&sig.note)
    	}
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_disable os/signal.signal_disable
    func signal_disable(s uint32) {
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_ignore os/signal.signal_ignore
    func signal_ignore(s uint32) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. 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)
  5. 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