Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: handle unlimited being coerced to NaN
  • Loading branch information
Trott committed Oct 20, 2015
commit 55561960833070ada7377efd7afcdd3fbfa46deb
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