From 13afac22a3959ee61cebae6034b607c886d2f9b1 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 8 May 2019 15:01:50 +0100 Subject: [PATCH] fix: ensure signal is sent to exit event --- lib/monitor/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index e316c2b1..e5493384 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -195,7 +195,7 @@ function run(options) { if (signal === config.signal || code === 0) { // this was a clean exit, so emit exit, rather than crash debug('bus.emit(exit) via ' + config.signal); - bus.emit('exit'); + bus.emit('exit', signal); // exit the monitor, but do it gracefully if (signal === config.signal) {