- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,105 for psignal (0.16 sec)
-
build/pause/linux/pause.c
limitations under the License. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #define STRINGIFY(x) #x #define VERSION_STRING(x) STRINGIFY(x) #ifndef VERSION #define VERSION HEAD #endif static void sigdown(int signo) { psignal(signo, "Shutting down, got signal"); exit(0); }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 26 13:26:24 UTC 2020 - 1.8K bytes - Viewed (0) -
src/os/signal/signal.go
// The only way to remove signals from the set is to call [Stop]. // // It is allowed to call Notify multiple times with different channels // and the same signals: each channel receives copies of incoming // signals independently. func Notify(c chan<- os.Signal, sig ...os.Signal) { if c == nil { panic("os/signal: Notify using nil channel") } handlers.Lock()
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) -
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)
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/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) -
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) -
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) -
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/runtime/signal_unix.go
flags = sigtable[sig].flags } // If the signal is ignored, raising the signal is no-op. if handler == _SIG_IGN || (handler == _SIG_DFL && flags&_SigIgn != 0) { return } // Reset the signal handler and raise the signal. // We are currently running inside a signal handler, so the // signal is blocked. We need to unblock it before raising the // signal, or the signal we raise will be ignored until we return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0)