- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 386 for signalM (0.19 sec)
-
src/runtime/runtime-gdb_unix_test.go
if err != nil { t.Fatalf("gdb exited with error: %v", err) } // We don't know which thread the fatal signal will land on, but we can still check for basics: // // 1. A frame in the signal handler: runtime.sigtramp // 2. GDB detection of the signal handler: <signal handler called> // 3. A frame before the signal handler: this could be foo, or somewhere in the scheduler re := regexp.MustCompile(`#.* runtime\.sigtramp `)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/doc.go
// misuse of unbuffered signal as argument to signal.Notify. // // # Analyzer sigchanyzer // // sigchanyzer: check for unbuffered channel of os.Signal // // This checker reports call expression of the form // // signal.Notify(c <-chan os.Signal, sig ...os.Signal), // // where c is an unbuffered channel, which can be at risk of missing the signal.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 585 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main_unix.c
return 2; } // gccgo does not set SA_ONSTACK for SIGSEGV. if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) { fprintf(stderr, "Go runtime did not install signal handler\n"); return 2; } oldHandler = osa.sa_sigaction; return 0; } int check_handler() { if (sigaction(SIGSEGV, NULL, &sa) < 0) { perror("sigaction check"); return 2; } if (sa.sa_sigaction != handler) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
die("sigaction"); } } // Test raising SIGIO on a C thread with an alternate signal stack // when there is a Go signal handler for SIGIO. static void* thread1(void* arg __attribute__ ((unused))) { stack_t ss; int i; stack_t nss; struct timespec ts; // Set up an alternate signal stack for this thread. memset(&ss, 0, sizeof ss); ss.ss_sp = malloc(CSIGSTKSZ); if (ss.ss_sp == NULL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
src/os/signal/example_unix_test.go
//go:build unix package signal_test import ( "context" "fmt" "log" "os" "os/signal" ) var neverReady = make(chan struct{}) // never closed // This example passes a context with a signal to tell a blocking function that // it should abandon its work after a signal is received. func ExampleNotifyContext() { ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) defer stop()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 1.1K bytes - Viewed (0) -
src/os/signal/signal_unix.go
//go:build unix || (js && wasm) || wasip1 || windows package signal import ( "os" "syscall" ) // Defined by the runtime package. func signal_disable(uint32) func signal_enable(uint32) func signal_ignore(uint32) func signal_ignored(uint32) bool func signal_recv() uint32 func loop() { for { process(syscall.Signal(signal_recv())) } } func init() { watchSignalLoop = loop }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 1K bytes - Viewed (0) -
cni/cmd/install-cni/main.go
package main import ( "context" "os" "os/signal" "syscall" "istio.io/istio/cni/pkg/cmd" "istio.io/istio/pkg/log" ) func main() { // Create context that cancels on termination signal ctx, cancel := context.WithCancel(context.Background()) sigChan := make(chan os.Signal, 1) signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM) go func(sigChan chan os.Signal, cancel context.CancelFunc) { sig := <-sigChan
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan12.go
// libc interceptor that writes signal handlers to a global variable within the // TSAN runtime instead of making a sigaction system call. A bug in // syscall.runtime_AfterForkInChild corrupted TSAN's signal forwarding table // during calls to (*os/exec.Cmd).Run, causing the parent process to fail to // invoke signal handlers. import ( "fmt" "os" "os/exec" "os/signal" "syscall" ) import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 929 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/watch_termination_test.go
switch { case test.signalAttachedToContext: if test.signal == nil || test.signal != signalGot { t.Errorf("expected request context to have server shutdown signal: %p, but got: %p", test.signal, signalGot) } default: if signalGot != nil { t.Errorf("expected request context to not have server shutdown signal: %p, but got: %p", test.signal, signalGot) } } if test.wg == nil { return
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 15:49:49 UTC 2023 - 5.2K bytes - Viewed (0) -
src/os/exec_plan9.go
"runtime" "syscall" "time" ) // The only signal values guaranteed to be present in the os package // on all systems are Interrupt (send the process an interrupt) and // Kill (force the process to exit). Interrupt is not implemented on // Windows; using it with [os.Process.Signal] will return an error. var ( Interrupt Signal = syscall.Note("interrupt") Kill Signal = syscall.Note("kill") )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0)