mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
Update ProcessObjectInternals.ts
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user