Closed thorleifjacobsen closed 8 years ago
I guess you should stop any running builds when starting a new one, but some people might be relying on this feature.
I'm suspecting a problem with the webserver that gulp spawns. It's likely not propagating the kill signal. For example, a simple gulpfile:
const gulp = require('gulp');
gulp.task('untz', () => {
setInterval(() => { console.log('im running', process.pid); }, 2000);
gulp.watch('gulpfile.js', () => {
console.log('changed');
});
});
And I can press cmd-alt-b over and over and it properly closes the previous command before spawning the next one. I can verify that be noticing that there's ever only one PID being output every 2 seconds.
What webserver is being spawned?
Closing due to inactivity.
When i run CMD+ALT+B my "gulp" command runs. Perfectly! My gulp script runs a server (listning to a port) and everythings perfect.
If i press it again it re-runs the same command, which generats an "error listning to port" since the first one already is running. Problem is that now the first one are lost in the background. To close it i need to:
ps -x | grep gulp kill -9
Then i can do a new cmd+alt+b :)