Skip to content

Commit

Permalink
Pass args to previous registered signal handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jan 30, 2024
1 parent 7ba878f commit 826a14b
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 826a14b

Please sign in to comment.