Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/libraries/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ class Executor {
let resolveFunction: () => void;

process.on('close', async (code, signal) => {
// Prevent open file watches when MySQL has been exited
// The file watch is only stopped if MySQL starts successfully
// This unwatch will prevent the watch from watching when the process has stopped.
fs.unwatchFile(errorLogFile)

if (signal) {
this.logger.log('Exiting because of aborted signal.')
return
Expand Down
Loading