From f9b8a356e4cc9fff9a957abd70d84db195e7dd85 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 22 May 2020 00:46:12 +0000 Subject: [PATCH] fix(core): update --- ts/tswatch.classes.watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`); }