Skip to content

Commit

Permalink
Pass args to previous registered signal handlers
Browse files Browse the repository at this point in the history
I'm not confident this is right, but not confident on the passing None
either. What is correct here?
  • Loading branch information
consideRatio committed Jan 30, 2024
1 parent 0c1be62 commit 4d2e774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpervisor/atexitasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4d2e774

Please sign in to comment.