diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 16:03:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 16:03:32 -0400 |
| commit | bb169a7b36a658ed463787655df54e3f59133d98 (patch) | |
| tree | 773587c8f8d31ff2d892d37ad8bcc3f6e1d319a5 /std/io.zig | |
| parent | 1fe1e6eeaf2f6157133546d49be6b0e0c1da3dd3 (diff) | |
| download | zig-bb169a7b36a658ed463787655df54e3f59133d98.tar.gz zig-bb169a7b36a658ed463787655df54e3f59133d98.zip | |
fix child process stdio piping behavior on windows
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig index dc396834e9..54cefb804c 100644 --- a/std/io.zig +++ b/std/io.zig @@ -313,8 +313,8 @@ pub const InStream = struct { else => error.Unexpected, }; } - if (amt_read == 0) return index; index += amt_read; + if (amt_read < want_read_count) return index; } return index; } else { |
