diff options
-rw-r--r-- | src/bun.js/api/bun/subprocess.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig index 649e3b3d2..1eba6acf6 100644 --- a/src/bun.js/api/bun/subprocess.zig +++ b/src/bun.js/api/bun/subprocess.zig @@ -553,7 +553,8 @@ pub const Subprocess = struct { // we consider a short read as being EOF this.received_eof = this.received_eof or bytes_read < buf.len; if (this.received_eof) { - this.autoCloseFileDescriptor(); + // do not auto-close the file descriptor here + // it's totally legit to have a short read return; } } |