On 01:05 pm, a...@roiban.ro wrote:
On 2 September 2014 14:50, <exar...@twistedmatrix.com> wrote:
On 01:38 pm, j...@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
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python