- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for pipeHandler (0.23 sec)
-
src/cmd/cgo/internal/testcarchive/testdata/main3.c
// that it is installed before the Go code starts. static void pipeHandler(int signo, siginfo_t* info, void* ctxt) { const char *s = "unexpected SIGPIPE\n"; write(2, s, strlen(s)); exit(EXIT_FAILURE); } static void init(void) __attribute__ ((constructor (200))); static void init() { struct sigaction sa; memset(&sa, 0, sizeof sa); sa.sa_sigaction = pipeHandler; if (sigemptyset(&sa.sa_mask) < 0) { die("sigemptyset");
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
static volatile sig_atomic_t sigpipeSeen; // Use up some stack space. static void recur(int i, char *p) { char a[1024]; *p = '\0'; if (i > 0) { recur(i - 1, a); } } static void pipeHandler(int signo, siginfo_t* info, void* ctxt) { sigpipeSeen = 1; } // Signal handler that uses up more stack space than a goroutine will have. static void ioHandler(int signo, siginfo_t* info, void* ctxt) { char a[1024];
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.7K bytes - Viewed (0) -
src/os/exec/exec_windows_test.go
"io" "os" "os/exec" "strconv" "strings" "syscall" "testing" ) var ( quitSignal os.Signal = nil pipeSignal os.Signal = syscall.SIGPIPE ) func init() { registerHelperCommand("pipehandle", cmdPipeHandle) } func cmdPipeHandle(args ...string) { handle, _ := strconv.ParseUint(args[0], 16, 64) pipe := os.NewFile(uintptr(handle), "") _, err := fmt.Fprint(pipe, args[1]) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 23:07:55 UTC 2023 - 2.4K bytes - Viewed (0)