[poppler] RFC: patch: parallel testing

Ihar `Philips` Filipau thephilips at gmail.com
Sat Dec 29 11:20:53 PST 2012


On 12/29/12, Adam Reichold <adamreichold at myopera.com> wrote:
>>> Another issue I've noticed with the threads is that
>>> poppler-regtest can't be kille with CTRL + C anymore.
>
> Yes, the reason is that Queue.join() is a blocking call so that the
> main thread can't handle the KeyboardInterrupt. There are several ways
> to work around this, but I simply opted to print the PID before
> spawning the worker threads to use with "kill". (Depending on the
> shell used, one can suspend the task and use "kill %%".) More
> complicated variants could poll the queue for unprocessed jobs and
> handle the KeyboardInterrupt by clearing it.
>

To my knowledge, you can also in Python install the signal handler and
call sys.exit() from there.

As per the http://docs.python.org/2/library/signal.html SIGINT can
also be overridden.


More information about the poppler mailing list