From 13a74e21760c0e828e27e5f6ffff87e6f833deba Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 28 Oct 2016 15:33:34 -0700 Subject: [PATCH] fix(fd-limit): Increase FD limit to 1024 --- src/browser/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/browser/main.js b/src/browser/main.js index becde48bd..087cbc2af 100644 --- a/src/browser/main.js +++ b/src/browser/main.js @@ -11,6 +11,8 @@ const app = require('electron').app; const path = require('path'); const mkdirp = require('mkdirp'); +process.setFdLimit(1024); + const setupConfigDir = (args) => { const defaultDirName = (args.specMode) ? '.nylas-spec' : '.nylas'; let configDirPath = path.join(app.getPath('home'), defaultDirName);