From 7efb8abd97d6ee8129411b0a15cfa11ea68cf431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 26 Mar 2019 19:06:10 +0100 Subject: [PATCH] Use code while exiting --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index ed04bd30..e2dd65e7 100755 --- a/app.js +++ b/app.js @@ -255,7 +255,7 @@ function exitProcess (listener, logger, killTimeout) { } logger.info(`Process is going to exit with code: ${code}`); - listener.close(() => global.log4js.shutdown(() => process.exit(1))); + listener.close(() => global.log4js.shutdown(() => process.exit(code))); }; }