Skip to content

Commit 85dc620

Browse files
authored
Retry pipe EAGAIN on macOS (#732)
* ...force pushed to trigger tests again after #733
1 parent 14ef16a commit 85dc620

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pipe-args.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ module.exports.load = (format) => {
2525
chunks.push(buffer.slice(0, nbytes));
2626
} catch (err) {
2727
if (err.code === 'EOF') break; // HACK: see nodejs/node#35997
28-
if (err.code === 'EAGAIN') break;
28+
if (err.code === 'EAGAIN') {
29+
if (process.platform === 'darwin') {
30+
continue;
31+
} else {
32+
break;
33+
}
34+
}
2935
throw err;
3036
}
3137
}

0 commit comments

Comments
 (0)