Message257163
If I understand correctly, the _try_wait mechanics (or 3.5's syscall behavior) already handle EINTR the way we way: ignore it and try wait()ing again.
So, this patch would kill only on a timeout, and never on another error like Ctrl-C, a UserDefinedTimeoutException from a signal handler, etc.
That's probably the lesser of two evils, the other being a SIGKILL against an arbitrary child process. Better to document that a non-timeout-parameter interruption to subprocess.call will separate the parent from its child, than to hard kill arbitrary programs when a polite SIGINT was intended. |
|
Date |
User |
Action |
Args |
2015-12-29 04:37:17 | Mike Pomraning | set | recipients:
+ Mike Pomraning, vstinner, SilentGhost |
2015-12-29 04:37:17 | Mike Pomraning | set | messageid: <1451363837.67.0.669861655205.issue25942@psf.upfronthosting.co.za> |
2015-12-29 04:37:17 | Mike Pomraning | link | issue25942 messages |
2015-12-29 04:37:16 | Mike Pomraning | create | |
|