- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 146 for Signal (0.44 sec)
-
src/cmd/cgo/internal/test/sigprocmask.go
extern int RunSigThread(); extern int CheckBlocked(); */ import "C" import ( "os" "os/signal" "syscall" "testing" ) var blocked bool //export IntoGoAndBack func IntoGoAndBack() { // Verify that SIGIO stays blocked on the C thread // even when unblocked for signal.Notify(). signal.Notify(make(chan os.Signal), syscall.SIGIO) blocked = C.CheckBlocked() != 0 } func testSigprocmask(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 808 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
if sig2 == 0 { t.Errorf("got %q; expected signal %q", ee, sig1) } else { t.Errorf("got %q; expected signal %q or %q", ee, sig1, sig2) } } else { return true } return false } func TestOsSignal(t *testing.T) { switch GOOS { case "windows": t.Skip("skipping signal test on Windows") } globalSkip(t) testenv.MustHaveGoBuild(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K 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) -
src/cmd/go/internal/tool/tool.go
Stdin: os.Stdin, Stdout: os.Stdout, Stderr: os.Stderr, } err = toolCmd.Start() if err == nil { c := make(chan os.Signal, 100) signal.Notify(c) go func() { for sig := range c { toolCmd.Process.Signal(sig) } }() err = toolCmd.Wait() signal.Stop(c) close(c) } if err != nil { // Only print about the exit status if the command
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 18:02:11 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/libgo4/libgo4.go
package main /* #include <signal.h> #include <pthread.h> // Raise SIGIO. static void CRaiseSIGIO(pthread_t* p) { pthread_kill(*p, SIGIO); } */ import "C" import ( "os" "os/signal" "sync/atomic" "syscall" ) var sigioCount int32 // Catch SIGIO. // //export GoCatchSIGIO func GoCatchSIGIO() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGIO)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 854 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan8.go
// This will be called when a signal occurs. void msanGoTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); arg->buf[0] = 0; } // msanGoWait will be called with all registers undefined as far as // msan is concerned. It just waits for a signal. // Because the registers are msan-undefined, the signal handler will // be invoked with all registers msan-undefined.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:30:58 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/go/stop_unix_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix || (js && wasm) package main_test import ( "os" "syscall" ) func quitSignal() os.Signal { return syscall.SIGQUIT
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 297 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go
// license that can be found in the LICENSE file. package main // This program failed when run under the C/C++ ThreadSanitizer. The // TSAN library was not keeping track of whether signals should be // delivered on the alternate signal stack, and the Go signal handler // was not preserving callee-saved registers from C callers. /* #cgo CFLAGS: -g -fsanitize=thread #cgo LDFLAGS: -g -fsanitize=thread #include <stdlib.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigaltstack.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !windows && !android // Test that the Go runtime still works if C code changes the signal stack. package cgotest /* #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _AIX // On AIX, SIGSTKSZ is too small to handle Go sighandler. #define CSIGSTKSZ 0x4000 #else
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.7K bytes - Viewed (0)