Skip to content

Commit 13afac2

Browse files
committed
fix: ensure signal is sent to exit event
1 parent aa41ab2 commit 13afac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/monitor/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function run(options) {
195195
if (signal === config.signal || code === 0) {
196196
// this was a clean exit, so emit exit, rather than crash
197197
debug('bus.emit(exit) via ' + config.signal);
198-
bus.emit('exit');
198+
bus.emit('exit', signal);
199199

200200
// exit the monitor, but do it gracefully
201201
if (signal === config.signal) {

0 commit comments

Comments
 (0)