From fa6aa022909b0a2c8b62a28cefccf31bc844178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elio=20Capella=20S=C3=A1nchez?= Date: Mon, 18 Nov 2024 17:31:53 +0100 Subject: [PATCH] node v20 complains of invalid arguments (#280) Co-authored-by: Elio Capella --- lib/preload/soft-exit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preload/soft-exit.js b/lib/preload/soft-exit.js index db06a96..8f19c23 100644 --- a/lib/preload/soft-exit.js +++ b/lib/preload/soft-exit.js @@ -1,4 +1,4 @@ 'use strict' -process.on('SIGINT', process.exit) -process.on('SIGTERM', process.exit) +process.on('SIGINT', () => process.exit()) +process.on('SIGTERM', () => process.exit())