From e263d3747665f8dac2cde9bb10e9856b6d67c77c Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 4 Feb 2020 11:14:53 +0000 Subject: [PATCH] pass the signal correctly to the shutdown handler --- services/real-time/app.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/real-time/app.coffee b/services/real-time/app.coffee index 3379d3e73b..074d384665 100644 --- a/services/real-time/app.coffee +++ b/services/real-time/app.coffee @@ -135,8 +135,7 @@ if Settings.shutdownDrainTimeWindow? shutdownDrainTimeWindow = parseInt(Settings.shutdownDrainTimeWindow, 10) logger.log shutdownDrainTimeWindow: shutdownDrainTimeWindow,"shutdownDrainTimeWindow enabled" for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT'] - process.on signal, -> - drainAndShutdown(signal) + process.on signal, drainAndShutdown # signal is passed as argument to event handler # global exception handler if Settings.errors?.catchUncaughtErrors