mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Don't bother trying to kill the child process on exit.
As the exit signal handler does not allow asynchronous tasks and besides, killing the parent should kill its children too.
This commit is contained in:
@@ -23,10 +23,14 @@ async function main () {
|
||||
INFO("Versions:", versions);
|
||||
|
||||
|
||||
process.on('exit', () => eventManager.kill());
|
||||
const eventManagerPath = [__dirname, "events"].join("/");
|
||||
const eventManager = fork(eventManagerPath, /*{ stdio: 'ignore' }*/);
|
||||
|
||||
process.on('exit', async () => {
|
||||
DEBUG("Exiting");
|
||||
// eventManager.kill()
|
||||
// periodicTasks.cleanup();
|
||||
});
|
||||
} catch (err) {
|
||||
ERROR(err);
|
||||
process.exit(2);
|
||||
|
||||
Reference in New Issue
Block a user