Skip to content

Commit 799b326

Browse files
committed
Revert kill app code
1 parent a7adc3f commit 799b326

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

lib/launchApplication.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ function stop (cb) {
5353
if (!app.child) {
5454
return process.nextTick(cb);
5555
}
56-
app.child.once('exit', cb);
57-
app.child.kill();
58-
}
56+
console.log('EXEC', '/bin/kill -TERM -- -' + app.child.pid)
57+
exec('/bin/kill -TERM -- -' + app.child.pid, stopped);
58+
59+
function stopped (err) {
60+
if (err) {
61+
cb(err);
62+
} else {
63+
cb();
64+
}
65+
app.child = null;
66+
}
67+
}

0 commit comments

Comments
 (0)