set stdout to blocking
This commit is contained in:
parent
e4d2e437a5
commit
56d441cce7
@ -70,6 +70,11 @@ dns.lookup = (hostname, opts, callback) => {
|
||||
}
|
||||
};
|
||||
|
||||
// workaround for https://github.com/nodejs/node/issues/6379
|
||||
for (const stream of [process.stdout, process.stderr]) {
|
||||
stream?._handle?.setBlocking?.(true);
|
||||
}
|
||||
|
||||
const args = minimist(argv.slice(2), {
|
||||
boolean: [
|
||||
"E", "error-on-outdated",
|
||||
|
Loading…
Reference in New Issue
Block a user