From 5fa39ce04c6d16cdf02058c924421a5359ac250d Mon Sep 17 00:00:00 2001 From: indexzero Date: Sun, 21 Apr 2013 05:13:40 -0400 Subject: [PATCH] [fix] Return `monitor` from `.startDaemon()`. Fixes #387. Fixes #389. --- lib/forever.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/forever.js b/lib/forever.js index 1c89ae36..e5d39c2a 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -420,6 +420,7 @@ forever.startDaemon = function (script, options) { monitor.send(JSON.stringify(options)); monitor.unref(); + return monitor; }; //