[Twisted-Python] spawnProcess - reapProcess not retrying on failures
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Wed Sep 3 07:39:46 MDT 2014
On 01:05 pm, adi at roiban.ro wrote:
>On 2 September 2014 14:50, <exarkun at twistedmatrix.com> wrote:
>>On 01:38 pm, jmp at editshare.com wrote:
>>>
>[snip]
>>>
>>>Without my workaround, I continue to have the problem with the
>>>gtk2reactor.
>>
>>Have you reported this bug?
>>
>>Jean-Paul
>
>In my initial use case, signal handlers were not installed since I
>wanted a custom behaviour for SIGINT, SIGTERM, SIGBREAK so that I can
>use my custom Unix Daemon and Windows Service adapters.
>
>I understand why reactor.run has the installSignalHandlers argument.
>
>Do you think it would make sense to have some kind of public API which
>would skip handlers for SIGINT, SIGTERM, SIGBREAK (as they only do
>reactor.stop()) but would install the SIGCHLD handler?
Yes. Providing more fine-grain control over signal handlers would be a
fine improvement.
Another fine improvement would be making child processes work even if a
SIGCHLD handler cannot be installed (for example, by polling children
periodically, by using wait() in a sidecar process, or by using a better
system-specific child process monitoring API (eg kqueue's EVFILT_PROC)).
Jean-Paul
More information about the Twisted-Python
mailing list