diff --git a/ts/tswatch.classes.watcher.ts b/ts/tswatch.classes.watcher.ts index 2016301..0b2e7b4 100644 --- a/ts/tswatch.classes.watcher.ts +++ b/ts/tswatch.classes.watcher.ts @@ -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`); }