Skip to content

Commit 7b59080

Browse files
author
Staffan Eketorp
committed
kill process with SIGINIT
1 parent 871ea65 commit 7b59080

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/child-require-hook.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ if (readyFile) {
115115

116116
if (exitChild) {
117117
process.on('SIGTERM', function() {
118+
// This is to make sure debuggers (e.g. Chrome) close
118119
console.log('Child got SIGTERM, exiting.')
119-
process.exit()
120+
process.kill(process.pid, 'SIGINT')
120121
})
121122
}
122123

0 commit comments

Comments
 (0)