mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
pass the signal correctly to the shutdown handler
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user