| author | |
| committer | |
| log | a03ab9ee01129913af526a38b688313ccd83dca2 |
| tree | 385470c1387945fa8a31686c300dd15a18427235 |
| parent | b5cafe223a5ed90fe1a10f6d0c1e492f81f4b586 |
| signature |
It appears that ReadFile returns ERROR_BROKEN_PIPE for a broken pipe, but WriteFile returns ERROR_NO_DATA.
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/windows.zig+1-1| ... | ... | @@ -682,7 +682,7 @@ pub fn WriteFile( |
| 682 | 682 | .OPERATION_ABORTED => return error.OperationAborted, |
| 683 | 683 | .NOT_ENOUGH_QUOTA => return error.SystemResources, |
| 684 | 684 | .IO_PENDING => unreachable, |
| 685 | .BROKEN_PIPE => return error.BrokenPipe, | |
| 685 | .NO_DATA => return error.BrokenPipe, | |
| 686 | 686 | .INVALID_HANDLE => return error.NotOpenForWriting, |
| 687 | 687 | .LOCK_VIOLATION => return error.LockViolation, |
| 688 | 688 | .NETNAME_DELETED => return error.ConnectionResetByPeer, |