Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for EPIPE (0.03 sec)

  1. src/os/exec/exec_unix.go

    // whether the provided stdin copy error should be ignored.
    func skipStdinCopyError(err error) bool {
    	// Ignore EPIPE errors copying to stdin if the program
    	// completed successfully otherwise.
    	// See Issue 9173.
    	pe, ok := err.(*fs.PathError)
    	return ok &&
    		pe.Op == "write" && pe.Path == "|1" &&
    		pe.Err == syscall.EPIPE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 26 13:47:05 UTC 2022
    - 635 bytes
    - Viewed (0)
  2. src/syscall/tables_wasip1.go

    	ENOTSOCK        Errno = 57
    	ENOTSUP         Errno = 58
    	ENOTTY          Errno = 59
    	ENXIO           Errno = 60
    	EOVERFLOW       Errno = 61
    	EOWNERDEAD      Errno = 62
    	EPERM           Errno = 63
    	EPIPE           Errno = 64
    	EPROTO          Errno = 65
    	EPROTONOSUPPORT Errno = 66
    	EPROTOTYPE      Errno = 67
    	ERANGE          Errno = 68
    	EROFS           Errno = 69
    	ESPIPE          Errno = 70
    	ESRCH           Errno = 71
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. src/os/pipe_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if err := r.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	expect := syscall.EPIPE
    	if runtime.GOOS == "windows" {
    		// 232 is Windows error code ERROR_NO_DATA, "The pipe is being closed".
    		expect = syscall.Errno(232)
    	}
    	// Every time we write to the pipe we should get an EPIPE.
    	for i := 0; i < 20; i++ {
    		_, err = w.Write([]byte("hi"))
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  4. src/syscall/tables_js.go

    	"EMFILE":          EMFILE,
    	"ENOTTY":          ENOTTY,
    	"EFBIG":           EFBIG,
    	"ENOSPC":          ENOSPC,
    	"ESPIPE":          ESPIPE,
    	"EROFS":           EROFS,
    	"EMLINK":          EMLINK,
    	"EPIPE":           EPIPE,
    	"ENAMETOOLONG":    ENAMETOOLONG,
    	"ENOSYS":          ENOSYS,
    	"EDQUOT":          EDQUOT,
    	"EDOM":            EDOM,
    	"ERANGE":          ERANGE,
    	"EDEADLK":         EDEADLK,
    	"ENOLCK":          ENOLCK,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 19.2K bytes
    - Viewed (0)
  5. src/syscall/zerrors_windows.go

    	ENOSYS
    	ENOTBLK
    	ENOTCONN
    	ENOTEMPTY
    	ENOTNAM
    	ENOTRECOVERABLE
    	ENOTSOCK
    	ENOTSUP
    	ENOTTY
    	ENOTUNIQ
    	ENXIO
    	EOPNOTSUPP
    	EOVERFLOW
    	EOWNERDEAD
    	EPERM
    	EPFNOSUPPORT
    	EPIPE
    	EPROTO
    	EPROTONOSUPPORT
    	EPROTOTYPE
    	ERANGE
    	EREMCHG
    	EREMOTE
    	EREMOTEIO
    	ERESTART
    	EROFS
    	ESHUTDOWN
    	ESOCKTNOSUPPORT
    	ESPIPE
    	ESRCH
    	ESRMNT
    	ESTALE
    	ESTRPIPE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 10K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcarchive/testdata/main5.c

    			}
    
    			int fd[2];
    			if (pipe(fd) != 0) {
    				printf("pipe(2) failed\n");
    				return 0;
    			}
    			// Close the reading end.
    			close(fd[0]);
    			// Expect that write(2) fails (EPIPE)
    			if (write(fd[1], "some data", 9) != -1) {
    				printf("write(2) unexpectedly succeeded\n");
    				return 0;
    			}
    			printf("did not receive SIGPIPE\n");
    			return 0;
    		}
    		case 4: {
    			fprintf(stderr, "OK\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. src/runtime/netpoll_kqueue.go

    			// will wake up a goroutine waiting to write;
    			// that goroutine will try the write again,
    			// and the appropriate thing will happen based
    			// on what that write returns (success, EPIPE, EAGAIN).
    			if ev.flags&_EV_EOF != 0 {
    				mode += 'w'
    			}
    		case _EVFILT_WRITE:
    			mode += 'w'
    		}
    		if mode != 0 {
    			var pd *pollDesc
    			var tag uintptr
    			if goarch.PtrSize == 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/os/signal/doc.go

    to a broken pipe on some other file descriptor will take no action on
    the SIGPIPE signal, and the write will fail with an EPIPE error.
    
    If the program has called Notify to receive SIGPIPE signals, the file
    descriptor number does not matter. The SIGPIPE signal will be
    delivered to the Notify channel, and the write will fail with an EPIPE
    error.
    
    This means that, by default, command line programs will behave like
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:11:00 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/os/file_unix.go

    	return f
    }
    
    func sigpipe() // implemented in package runtime
    
    // epipecheck raises SIGPIPE if we get an EPIPE error on standard
    // output or standard error. See the SIGPIPE docs in os/signal, and
    // issue 11845.
    func epipecheck(file *File, e error) {
    	if e == syscall.EPIPE && file.stdoutOrErr {
    		sigpipe()
    	}
    }
    
    // DevNull is the name of the operating system's “null device.”
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. src/syscall/exec_unix.go

    		if err != EINTR {
    			break
    		}
    	}
    	Close(p[0])
    	if err != nil || n != 0 {
    		if n == int(unsafe.Sizeof(err1)) {
    			err = Errno(err1)
    		}
    		if err == nil {
    			err = EPIPE
    		}
    
    		// Child failed; wait for it to exit, to make sure
    		// the zombies don't accumulate.
    		_, err1 := Wait4(pid, &wstatus, 0, nil)
    		for err1 == EINTR {
    			_, err1 = Wait4(pid, &wstatus, 0, nil)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top