Skip to content

Commit

Permalink
fixup: handle unlimited being coerced to NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Oct 20, 2015
1 parent 30edd30 commit 5556196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-child-process-emfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (common.isWindows) {
}

const ulimit = Number(child_process.execSync('ulimit -n'));
if (ulimit > 64) {
if (ulimit > 64 || Number.isNaN(ulimit)) {
// Sorry about this nonsense. It can be replaced if
// /~https://github.com/nodejs/node-v0.x-archive/pull/2143#issuecomment-2847886
// ever happens.
Expand Down

0 comments on commit 5556196

Please sign in to comment.