On Mon, 01 Sep 2014 11:47:07 -0400 "R. David Murray" firstname.lastname@example.org wrote:
The two requirements are:
- Allow the application to react to signals immediately in the main flow.
You don't want to be writing your code in Python then. In Python you *never* get to react immediately to signals. The interpreter sets a flag and calls the python signal handler later. Yes, the call is ASAP, but ASAP is *not* "immediately".
Especially if the signal is delivered to another thread (which is OS-dependent), and the main thread is blocked in *another* system call ;-)