We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mkOnClose
1 parent 2a1f094 commit d1d487cCopy full SHA for d1d487c
src/Node/ChildProcess.js
@@ -88,7 +88,7 @@ exports.mkOnClose = function mkOnClose (mkChildExit) {
88
return function onClose (cp) {
89
return function (cb) {
90
return function () {
91
- cp.on('exit', function (code, signal) {
+ cp.on('close', function (code, signal) {
92
cb(mkChildExit(code)(signal))();
93
});
94
};
0 commit comments