Closed kristijanhusak closed 3 years ago
Hmm, might be a linux issue. I just tried it on OSX and works. I'll try on linux soon.
Can confirm this is happening on the following architecture as well:
OS: Ubuntu 14.04 64 bit node: v5.2.0 npm: 3.3.12
I researched a little bit more, and noticed that the problem is with the Meteor app that is started, not the Chimp. So when app is started here, it only runs meteor command, which later spawns it's own child processes. Killing this process does not kill those meteor child processes. For now, only solution I found is to kill all meteor processes in process close event:
proc.on('close', function (code) {
console.log(opts.name, 'exited with code ' + code);
for (var i = 0; i < processes.length; i += 1) {
processes[i].kill();
}
// Kill all meteor processes
exec('kill `ps ax | grep node | grep meteor | awk \'{print $1}\'`');
process.exit(code);
});
Thank you for doing the research
Another place you can add the kill
in the meantime is to put it here
Something like:
"test": "kill `ps ax | grep node | grep meteor | awk \'{print $1}\'` && .scripts/test.js"
I am seeing the same issue with npm test
I did the following
$ watch -n 1 "ps auxww"
In another tmux pane
$ npm test
Tests started, I noticed the meteor process fire up, tests ended, but the meteor process never terminates.
Hi,
I cannot manage to run
CI=1 npm start
twice in my local environment. I get this error:I noticed that chimp process is not killed in the
close
event here, only the meteor app is killed. I had to runkill -9 pid
to kill the chimp process. Is there a way to fix this?When I run only
npm start
and kill watch process, I can rerun it without any problem.OS: Xubuntu 15.10 64 bit node: v5.3.0 npm: 3.3.12