Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for SIGPIPE (0.11 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go

    /*
    #include <signal.h>
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    
    // Raise SIGPIPE.
    static void CRaiseSIGPIPE() {
    	int fds[2];
    
    	if (pipe(fds) == -1) {
    		perror("pipe");
    		exit(EXIT_FAILURE);
    	}
    	// Close the reader end
    	close(fds[0]);
    	// Write to the writer end to provoke a SIGPIPE
    	if (write(fds[1], "some data", 9) != -1) {
    		fprintf(stderr, "write to a closed pipe succeeded\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main3.c

    	pthread_t tid;
    
    	verbose = argc > 2;
    	setvbuf(stdout, NULL, _IONBF, 0);
    
    	if (verbose) {
    		printf("raising SIGPIPE\n");
    	}
    
    	// Test that the Go runtime handles SIGPIPE, even if we installed
    	// a non-default SIGPIPE handler before the runtime initializes.
    	ProvokeSIGPIPE();
    
    	// Test that SIGPIPE on a non-main thread is also handled by Go.
    	res = pthread_create(&tid, NULL, provokeSIGPIPE, NULL);
    	if (res != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/os/signal/doc.go

    # SIGPIPE
    
    When a Go program writes to a broken pipe, the kernel will raise a
    SIGPIPE signal.
    
    If the program has not called Notify to receive SIGPIPE signals, then
    the behavior depends on the file descriptor number. A write to a
    broken pipe on file descriptors 1 or 2 (standard output or standard
    error) will cause the program to exit with a SIGPIPE signal. A write
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:11:00 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/runtime/defs_netbsd.go

    	SIGILL    = C.SIGILL
    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGEMT    = C.SIGEMT
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGBUS    = C.SIGBUS
    	SIGSEGV   = C.SIGSEGV
    	SIGSYS    = C.SIGSYS
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGTERM   = C.SIGTERM
    	SIGURG    = C.SIGURG
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGCONT   = C.SIGCONT
    	SIGCHLD   = C.SIGCHLD
    	SIGTTIN   = C.SIGTTIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/runtime/defs2_linux.go

    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGBUS    = C.SIGBUS
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGUSR1   = C.SIGUSR1
    	SIGSEGV   = C.SIGSEGV
    	SIGUSR2   = C.SIGUSR2
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGSTKFLT = C.SIGSTKFLT
    	SIGCHLD   = C.SIGCHLD
    	SIGCONT   = C.SIGCONT
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGTTIN   = C.SIGTTIN
    	SIGTTOU   = C.SIGTTOU
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 18:28:11 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  6. src/runtime/defs_linux.go

    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGBUS    = C.SIGBUS
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGUSR1   = C.SIGUSR1
    	SIGSEGV   = C.SIGSEGV
    	SIGUSR2   = C.SIGUSR2
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGSTKFLT = C.SIGSTKFLT
    	SIGCHLD   = C.SIGCHLD
    	SIGCONT   = C.SIGCONT
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGTTIN   = C.SIGTTIN
    	SIGTTOU   = C.SIGTTOU
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 18:28:11 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    		nanosleep(&ts, NULL);
    		i++;
    		if (i > 5000) {
    			fprintf(stderr, "looping too long waiting for SIGIO\n");
    			exit(EXIT_FAILURE);
    		}
    	}
    
    	if (verbose) {
    		printf("provoking SIGPIPE\n");
    	}
    
    	// SIGPIPE is never forwarded on Darwin, see golang.org/issue/33384.
    	if (!darwin) {
    		GoRaiseSIGPIPE();
    
    		if (verbose) {
    			printf("waiting for sigpipeSeen\n");
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. src/runtime/defs_darwin.go

    	SIGILL    = C.SIGILL
    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGEMT    = C.SIGEMT
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGBUS    = C.SIGBUS
    	SIGSEGV   = C.SIGSEGV
    	SIGSYS    = C.SIGSYS
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGTERM   = C.SIGTERM
    	SIGURG    = C.SIGURG
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGCONT   = C.SIGCONT
    	SIGCHLD   = C.SIGCHLD
    	SIGTTIN   = C.SIGTTIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. src/runtime/defs_arm_linux.go

    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGBUS    = C.SIGBUS
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGUSR1   = C.SIGUSR1
    	SIGSEGV   = C.SIGSEGV
    	SIGUSR2   = C.SIGUSR2
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGSTKFLT = C.SIGSTKFLT
    	SIGCHLD   = C.SIGCHLD
    	SIGCONT   = C.SIGCONT
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGTTIN   = C.SIGTTIN
    	SIGTTOU   = C.SIGTTOU
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  10. src/runtime/defs_dragonfly.go

    	SIGILL    = C.SIGILL
    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGEMT    = C.SIGEMT
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGBUS    = C.SIGBUS
    	SIGSEGV   = C.SIGSEGV
    	SIGSYS    = C.SIGSYS
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGTERM   = C.SIGTERM
    	SIGURG    = C.SIGURG
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGCONT   = C.SIGCONT
    	SIGCHLD   = C.SIGCHLD
    	SIGTTIN   = C.SIGTTIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top