fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-22 00:46:12 +00:00
parent 408b6f8fc5
commit f9b8a356e4

View File

@ -65,7 +65,7 @@ export class Watcher {
if (typeof this.options.commandToExecute === 'string') {
if (this.currentExecution) {
logger.log('ok', `reexecuting ${this.options.commandToExecute}`);
process.kill(-this.currentExecution.childProcess.pid);
process.kill(this.currentExecution.childProcess.pid, 'SIGQUIT');
} else {
logger.log('ok', `executing ${this.options.commandToExecute} for the first time`);
}