title: NodeJS error "EMFILE, too many open files" on Mac OS
body: <p>For sometime I am having the following error:</p>
  
  <pre><code>Error: EMFILE, too many open files  '/Users/blagus/Gallery/Websites/Nicsware/Pills/resources/core/auth.node.js'
      at Object.fs.openSync (fs.js:427:18)
      at Object.fs.readFileSync (fs.js:284:15)
      at Object.Module._extensions..js (module.js:473:44)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at instController  (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/mvc.node.js:79:31)
      at init (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/mvc.node.js:57:8)
      at route (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/dispatcher.node.js:268:36)
  </code></pre>
  
  <p>The line of code making the call to this file (mvc.node.js:79) is</p>
  
  <pre><code>    this.currentRoute.class = require( controllerFile )[dispatchClass].bind( this );
  </code></pre>
  
  <p>(it is a framework I am creating)</p>
  
  <p>As you can see, the file auth.node.js is called by a REQUIRE, so the given solutions with gracefullFS and similar does not fit. Besides, this problem occour MacOS only. In a Ubuntu seems to work just fine.</p>
  
  <p>Any thoughts?</p>