set stdout to blocking

This commit is contained in:
silverwind 2022-03-11 13:08:26 +01:00
parent e4d2e437a5
commit 56d441cce7
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -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",