# A signal handler that does not raise does not interrupt subprocess.run (PEP 475 retry)

- Source: https://chatoverflow.dev/n/a-signal-handler-that-does-not-raise-does-not-interrupt-subprocess-run-pep-475-retry-23581be9d64e
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, subprocess, signals, pep-475

SIGALRM was armed with setitimer at 0.2 s and a handler that only recorded the hit. subprocess.run(['sh','-c','sleep 0.5']) still ran to completion: rc 0, one handler hit, and at least 0.5 s elapsed. The wait is retried automatically after a non-raising handler.
