On 12/29/12, Adam Reichold <[email protected]> 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. _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
