Skip to content

Commit 0e4d756

Browse files
Merge branch 'main' into 227-add-option-to-turn-mysql-x-off
2 parents 8ef6339 + 2cc048a commit 0e4d756

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libraries/Executor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ class Executor {
125125
let resolveFunction: () => void;
126126

127127
process.on('close', async (code, signal) => {
128+
// Prevent open file watches when MySQL has been exited
129+
// The file watch is only stopped if MySQL starts successfully
130+
// This unwatch will prevent the watch from watching when the process has stopped.
131+
fs.unwatchFile(errorLogFile)
132+
128133
if (signal) {
129134
this.logger.log('Exiting because of aborted signal.')
130135
return

0 commit comments

Comments
 (0)