Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 948 for sigtab (0.14 sec)

  1. src/os/signal/signal_plan9.go

    }
    
    func loop() {
    	for {
    		process(syscall.Note(signal_recv()))
    	}
    }
    
    const numSig = 256
    
    func signum(sig os.Signal) int {
    	switch sig := sig.(type) {
    	case syscall.Note:
    		n, ok := sigtab[sig]
    		if !ok {
    			n = len(sigtab) + 1
    			if n > numSig {
    				return -1
    			}
    			sigtab[sig] = n
    		}
    		return n
    	default:
    		return -1
    	}
    }
    
    func enableSignal(sig int) {
    	signal_enable(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/runtime/os3_plan9.go

    	}
    	if isAbortPC(c.pc()) {
    		// Never turn abort into a panic.
    		goto Throw
    	}
    	// See if the note matches one of the patterns in sigtab.
    	// Notes that do not match any pattern can be handled at a higher
    	// level by the program but will otherwise be ignored.
    	flags = _SigNotify
    	for sig, t = range sigtable {
    		if stringslite.HasPrefix(notestr, t.name) {
    			flags = t.flags
    			break
    		}
    	}
    	if flags&_SigPanic != 0 && gp.throwsplit {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. src/os/signal/signal.go

    )
    
    // Notify causes package signal to relay incoming signals to c.
    // If no signals are provided, all incoming signals will be relayed to c.
    // Otherwise, just the provided signals will.
    //
    // Package signal will not block sending to c: the caller must ensure
    // that c has sufficient buffer space to keep up with the expected
    // signal rate. For a channel used for notification of just one signal value,
    // a buffer of size 1 is sufficient.
    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. staging/src/k8s.io/apiserver/pkg/server/signal.go

    	shutdownHandler = make(chan os.Signal, 2)
    
    	ctx, cancel := context.WithCancel(context.Background())
    	signal.Notify(shutdownHandler, shutdownSignals...)
    	go func() {
    		<-shutdownHandler
    		cancel()
    		<-shutdownHandler
    		os.Exit(1) // second signal. Exit directly.
    	}()
    
    	return ctx
    }
    
    // RequestShutdown emulates a received event that is considered as shutdown signal (SIGTERM/SIGINT)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 14:30:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  5. src/runtime/sigtab_linux_mipsx.go

    	/*  40 */ {_SigNotify, "signal 40"},
    	/*  41 */ {_SigNotify, "signal 41"},
    	/*  42 */ {_SigNotify, "signal 42"},
    	/*  43 */ {_SigNotify, "signal 43"},
    	/*  44 */ {_SigNotify, "signal 44"},
    	/*  45 */ {_SigNotify, "signal 45"},
    	/*  46 */ {_SigNotify, "signal 46"},
    	/*  47 */ {_SigNotify, "signal 47"},
    	/*  48 */ {_SigNotify, "signal 48"},
    	/*  49 */ {_SigNotify, "signal 49"},
    	/*  50 */ {_SigNotify, "signal 50"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6K bytes
    - Viewed (0)
  6. src/runtime/signal_freebsd.go

    package runtime
    
    var sigtable = [...]sigTabT{
    	/* 0 */ {0, "SIGNONE: no trap"},
    	/* 1 */ {_SigNotify + _SigKill, "SIGHUP: terminal line hangup"},
    	/* 2 */ {_SigNotify + _SigKill, "SIGINT: interrupt"},
    	/* 3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit"},
    	/* 4 */ {_SigThrow + _SigUnblock, "SIGILL: illegal instruction"},
    	/* 5 */ {_SigThrow + _SigUnblock, "SIGTRAP: trace trap"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:40:19 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  7. src/runtime/signal_openbsd.go

    package runtime
    
    var sigtable = [...]sigTabT{
    	/*  0 */ {0, "SIGNONE: no trap"},
    	/*  1 */ {_SigNotify + _SigKill, "SIGHUP: terminal line hangup"},
    	/*  2 */ {_SigNotify + _SigKill, "SIGINT: interrupt"},
    	/*  3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit"},
    	/*  4 */ {_SigThrow + _SigUnblock, "SIGILL: illegal instruction"},
    	/*  5 */ {_SigThrow + _SigUnblock, "SIGTRAP: trace trap"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 22 18:58:08 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/base/signal.go

    // license that can be found in the LICENSE file.
    
    package base
    
    import (
    	"os"
    	"os/signal"
    	"sync"
    )
    
    // Interrupted is closed when the go command receives an interrupt signal.
    var Interrupted = make(chan struct{})
    
    // processSignals setups signal handler.
    func processSignals() {
    	sig := make(chan os.Signal, 1)
    	signal.Notify(sig, signalsToIgnore...)
    	go func() {
    		<-sig
    		close(Interrupted)
    	}()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 02 16:43:58 UTC 2020
    - 663 bytes
    - Viewed (0)
  9. pkg/scheduler/internal/cache/debugger/signal.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package debugger
    
    import "syscall"
    
    // compareSignal is the signal to trigger cache compare. For non-windows
    // environment it's SIGUSR2.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 785 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprognet/signal.go

    // must not import anything (like net, but also like os/signal)
    // that kicks off background goroutines during init.
    
    package main
    
    import (
    	"os/signal"
    	"syscall"
    )
    
    func init() {
    	register("SignalIgnoreSIGTRAP", SignalIgnoreSIGTRAP)
    }
    
    func SignalIgnoreSIGTRAP() {
    	signal.Ignore(syscall.SIGTRAP)
    	syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 646 bytes
    - Viewed (0)
Back to top