From 4d2e774a4ce0ef62c127a239325a5961b8733a8c 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 ff6dcb9..ebb047d 100644 --- a/simpervisor/atexitasync.py +++ b/simpervisor/atexitasync.py @@ -71,6 +71,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)