Interrupting a blocking function frolm another thread.

2012-04-08 Thread superhac...@gmail.com
I am using the python module nfqueue-bindings which is a nfqueue packet intercepting module. It uses the following snippet of code to start the process: print "trying to run" try: q.try_run() except KeyboardInterrupt, e: print "interrupted" The q.try_run() method blocks. I would

Re: Interrupting a blocking function frolm another thread.

2012-04-09 Thread superhac...@gmail.com
On Apr 8, 8:09 pm, Adam Skutt wrote: > On Apr 8, 5:52 pm, superhac...@gmail.com wrote: > > > > > > > > > > > On Sunday, April 8, 2012 3:55:41 PM UTC-5, Adam Skutt wrote: > > > On Apr 8, 2:45 pm, "superhac...@gmail.com" > > > wrote: