Skip to content

Commit

Permalink
fix: ensure signal is sent to exit event
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed May 8, 2019
1 parent aa41ab2 commit 13afac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 13afac2

Please sign in to comment.