We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7adc3f commit 799b326Copy full SHA for 799b326
1 file changed
lib/launchApplication.js
@@ -53,6 +53,15 @@ function stop (cb) {
53
if (!app.child) {
54
return process.nextTick(cb);
55
}
56
- app.child.once('exit', cb);
57
- app.child.kill();
58
-}
+ console.log('EXEC', '/bin/kill -TERM -- -' + app.child.pid)
+ exec('/bin/kill -TERM -- -' + app.child.pid, stopped);
+
59
+ function stopped (err) {
60
+ if (err) {
61
+ cb(err);
62
+ } else {
63
+ cb();
64
+ }
65
+ app.child = null;
66
67
+}
0 commit comments