Skip to content
Browse files

Use graceful-fs to avoid EMFILE errors.

  • Loading branch information...
1 parent 3ce71bd commit e1a188dcfb4cd7daf7bca1081e9bca7588f65ccf @rgrove committed Oct 27, 2011
Showing with 6 additions and 2 deletions.
  1. +3 −0 HISTORY.md
  2. +1 −1 lib/fileutils.js
  3. +1 −1 lib/selleck.js
  4. +1 −0 package.json
View
3 HISTORY.md
@@ -6,6 +6,9 @@ Selleck History
* Node 0.5.x/0.6.x compatibility.
+* Now using graceful-fs to avoid EMFILE errors due to too many open file
+ handles when generating lots of docs.
+
0.1.6 (2011-09-27)
------------------
View
2 lib/fileutils.js
@@ -4,7 +4,7 @@ Copyright (c) 2011 Yahoo! Inc.
Licensed under the BSD License.
*/
-var fs = require('fs'),
+var fs = require('graceful-fs'),
fsPath = require('path'),
nodeUtil = require('util');
View
2 lib/selleck.js
@@ -8,7 +8,7 @@ Licensed under the BSD License.
@module selleck
**/
-var fs = require('fs'),
+var fs = require('graceful-fs'),
path = require('path'),
Handlebars = require('../support/handlebars/handlebars').Handlebars,
View
1 package.json
@@ -25,6 +25,7 @@
"dependencies": {
"express" : ">=2.3.0 <2.6.0",
+ "graceful-fs": "~1.0.1"
},
"main": "index",

0 comments on commit e1a188d

Please sign in to comment.
Something went wrong with that request. Please try again.