From b21f08db49240f909bc756ae35da57d9a6f9d1c0 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 30 Jan 2024 12:44:09 +0100 Subject: [PATCH] Pass args to previous registered signal handlers I'm not confident this is right, but not confident on the passing None either. What is correct here? --- simpervisor/atexitasync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpervisor/atexitasync.py b/simpervisor/atexitasync.py index 3a982ac..b0d5e40 100644 --- a/simpervisor/atexitasync.py +++ b/simpervisor/atexitasync.py @@ -69,6 +69,6 @@ def _handle_signal(signum, *args): # call previously registered non-default Python callable handler or exit if prev_handler: - prev_handler(signum, None) + prev_handler(signum, *args) else: sys.exit(0)