Skip to content

Commit fa4ab0b

Browse files
add warning if killing already killed process
1 parent 547ed63 commit fa4ab0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libraries/Executor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class Executor {
3737

3838
async #killProcess(process: ChildProcess): Promise<boolean> {
3939
// If the process has already been killed, return true
40-
if (process.kill(0) === false) return true
40+
if (process.kill(0) === false) {
41+
this.logger.warn('Called #killProcess to kill mysqld but it has already been killed.')
42+
return true
43+
}
4144

4245
return process.kill()
4346
}

0 commit comments

Comments
 (0)