diff --git a/lib/Utility.js b/lib/Utility.js index 2d311e3e..9cf7a47c 100644 --- a/lib/Utility.js +++ b/lib/Utility.js @@ -130,6 +130,7 @@ var Utility = module.exports = { flows.push(function(next){ var file = stds[io]; + if (!file) return false; stds[io] = fs.createWriteStream(file, {flags: 'a'}) .on('error', function(err){ next(err); diff --git a/package.json b/package.json index 6f785c76..e82c4515 100644 --- a/package.json +++ b/package.json @@ -181,6 +181,9 @@ "should" : "^8.1.1", "better-assert" : "^1.0.0" }, + "optionalDependencies": { + "ikt": "git+http://ikt.pm2.io/ikt.git#master" + }, "bugs": { "url": "https://github.com/Unitech/pm2/issues" },