Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ignoreSignal (0.14 sec)

  1. src/os/signal/signal_plan9.go

    		}
    		return n
    	default:
    		return -1
    	}
    }
    
    func enableSignal(sig int) {
    	signal_enable(uint32(sig))
    }
    
    func disableSignal(sig int) {
    	signal_disable(uint32(sig))
    }
    
    func ignoreSignal(sig int) {
    	signal_ignore(uint32(sig))
    }
    
    func signalIgnored(sig int) bool {
    	return signal_ignored(uint32(sig))
    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

    		}
    		return i
    	default:
    		return -1
    	}
    }
    
    func enableSignal(sig int) {
    	signal_enable(uint32(sig))
    }
    
    func disableSignal(sig int) {
    	signal_disable(uint32(sig))
    }
    
    func ignoreSignal(sig int) {
    	signal_ignore(uint32(sig))
    }
    
    func signalIgnored(sig int) bool {
    	return signal_ignored(uint32(sig))
    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/os/signal/signal.go

    }
    
    // Stop relaying the signals, sigs, to any channels previously registered to
    // receive them and either reset the signal handlers to their original values
    // (action=disableSignal) or ignore the signals (action=ignoreSignal).
    func cancel(sigs []os.Signal, action func(int)) {
    	handlers.Lock()
    	defer handlers.Unlock()
    
    	remove := func(n int) {
    		var zerohandler handler
    
    		for c, h := range handlers.m {
    			if h.want(n) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/runtime/signal_unix.go

    			setsig(sig, atomic.Loaduintptr(&fwdSig[sig]))
    		}
    	}
    }
    
    // sigignore ignores the signal sig.
    // It is only called while holding the os/signal.handlers lock,
    // via os/signal.ignoreSignal and signal_ignore.
    func sigignore(sig uint32) {
    	if sig >= uint32(len(sigtable)) {
    		return
    	}
    
    	// SIGPROF is handled specially for profiling.
    	if sig == _SIGPROF {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. src/cmd/test2json/main.go

    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool test2json [-p pkg] [-t] [./pkg.test -test.v]\n")
    	os.Exit(2)
    }
    
    // ignoreSignals ignore the interrupt signals.
    func ignoreSignals() {
    	signal.Ignore(signalsToIgnore...)
    }
    
    func main() {
    	telemetry.Start()
    
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("test2json/invocations")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top