- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 420 for signalfd (0.16 sec)
-
src/os/signal/signal.go
// signals no longer need to be diverted to the context. func NotifyContext(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc) { ctx, cancel := context.WithCancel(parent) c := &signalCtx{ Context: ctx, cancel: cancel, signals: signals, } c.ch = make(chan os.Signal, 1) Notify(c.ch, c.signals...) if ctx.Err() == nil { go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/ctrlz/topics/assets/templates/signals.html
{{ define "content" }} <p> Send signals to the running process. </p> <br> <button class="btn btn-istio" onclick="sendSIGUSR1()">SIGUSR1</button> {{ template "last-refresh" .}} <script> "use strict"; function sendSIGUSR1() { let url = window.location.protocol + "//" + window.location.host + "/signalj/SIGUSR1"; let ajax = new XMLHttpRequest(); ajax.onload = onload;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 687 bytes - Viewed (0) -
pkg/ctrlz/topics/signals.go
// SignalsTopic returns a ControlZ topic that sends command signals to the process func SignalsTopic() fw.Topic { return signalsTopic{} } func (signalsTopic) Title() string { return "Signals" } func (signalsTopic) Prefix() string { return "signal" } func (signalsTopic) Activate(context fw.TopicContext) { tmpl := assets.ParseTemplate(context.Layout(), "templates/signals.html")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 07 17:12:24 UTC 2024 - 1.6K bytes - Viewed (0) -
cmd/signals.go
exit(stopProcess()) case osSignal := <-globalOSSignalCh: logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String())) daemon.SdNotify(false, daemon.SdNotifyStopping) exit(stopProcess()) case signal := <-globalServiceSignalCh: switch signal { case serviceRestart: logger.Info("Restarting on service signal") daemon.SdNotify(false, daemon.SdNotifyReloading) stop := stopProcess()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 17:57:52 UTC 2024 - 2.8K 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/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/cmd/cgo/internal/testsanitizers/testdata/tsan10.go
// This program hung when run under the C/C++ ThreadSanitizer. // TSAN defers asynchronous signals until the signaled thread calls into libc. // Since the Go runtime makes direct futex syscalls, Go runtime threads could // run for an arbitrarily long time without triggering the libc interceptors. // See https://golang.org/issue/18717. import ( "os" "os/signal" "syscall" ) /* #cgo CFLAGS: -g -fsanitize=thread
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 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) -
staging/src/k8s.io/apiserver/pkg/server/lifecycle_signals.go
type lifecycleSignal interface { // Signal signals the event, indicating that the event has occurred. // Signal is idempotent, once signaled the event stays signaled and // it immediately unblocks any goroutine waiting for this event. Signal() // Signaled returns a channel that is closed when the underlying event // has been signaled. Successive calls to Signaled return the same value. Signaled() <-chan struct{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 15:49:30 UTC 2023 - 7.8K bytes - Viewed (0) -
src/internal/fuzz/sys_posix.go
// If not, -1 and false. func terminationSignal(err error) (os.Signal, bool) { exitErr, ok := err.(*exec.ExitError) if !ok || exitErr.ExitCode() >= 0 { return syscall.Signal(-1), false } status := exitErr.Sys().(syscall.WaitStatus) return status.Signal(), status.Signaled() } // isCrashSignal returns whether a signal was likely to have been caused by an // error in the program that received it, triggered by a fuzz input. For
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 12 19:47:40 UTC 2022 - 4.1K bytes - Viewed (0)