- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 920 for SIGNAL (0.21 sec)
-
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) -
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) -
pkg/scheduler/internal/cache/debugger/signal.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 785 bytes - Viewed (0) -
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) -
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) -
src/runtime/testdata/testprog/signal.go
// Should die immediately, but we've seen flakiness on various // systems (see issue 14063). It's possible that the signal is // being delivered to a different thread and we are returning // and exiting before that thread runs again. Give the program // a little while to die to make sure we pick up the signal // before we return and exit the program. The time here // shouldn't matter--we'll never really sleep this long.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 861 bytes - Viewed (0) -
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) -
src/runtime/sigqueue.go
} } } // signalWaitUntilIdle waits until the signal delivery mechanism is idle. // This is used to ensure that we do not drop a signal notification due // to a race between disabling a signal and receiving a signal. // This assumes that signal delivery has already been disabled for // the signal(s) in question, and here we are just waiting to make sure
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_context.go
} // initializationSignalFrom returns an initialization signal function // which when called signals that watch initialization has already finished // to priority and fairness dispatcher. func initializationSignalFrom(ctx context.Context) (InitializationSignal, bool) { signal, ok := ctx.Value(priorityAndFairnessInitializationSignalKey).(InitializationSignal) return signal, ok && signal != nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 14 14:39:15 UTC 2021 - 2.9K bytes - Viewed (0) -
pkg/kubelet/eviction/api/types.go
*/ package api import ( "time" "k8s.io/apimachinery/pkg/api/resource" ) // Signal defines a signal that can trigger eviction of pods on a node. type Signal string const ( // SignalMemoryAvailable is memory available (i.e. capacity - workingSet), in bytes. SignalMemoryAvailable Signal = "memory.available"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 5.7K bytes - Viewed (0)