Update ProcessObjectInternals.ts

This commit is contained in:
Jarred Sumner
2024-09-11 23:02:54 -07:00
committed by pfg
parent 9145a28476
commit eafa644322

View File

@@ -64,7 +64,7 @@ export function getStdinStream(fd) {
const tty = require("node:tty");
if (!tty.isatty(fd)) {
const fs = require("node:fs");
return new fs.ReadStream(fd);
return new fs.ReadStream(null, { fd: fd, autoClose: false });
}
// Ideally we could use this: