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 7ba878f commit b21f08d
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 @@ -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)

0 comments on commit b21f08d

Please sign in to comment.