Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GoRaiseSIGPIPE (0.11 sec)

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

    	fmt.Fprintln(os.Stderr, "continued after segv")
    	os.Exit(1)
    }
    
    // Noop ensures that the Go runtime is initialized.
    //
    //export Noop
    func Noop() {
    }
    
    // Raise SIGPIPE.
    //
    //export GoRaiseSIGPIPE
    func GoRaiseSIGPIPE() {
    	C.CRaiseSIGPIPE()
    }
    
    func main() {
    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/main2.c

    			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");
    		}
    
    		// Wait until the signal has been delivered.
    		i = 0;
    		while (!sigpipeSeen) {
    			ts.tv_sec = 0;
    			ts.tv_nsec = 1000000;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top