[triangle-zpug] blocking threads and capturing control-c
philip at semanchuk.com
philip at semanchuk.com
Mon Jan 28 18:23:35 CET 2008
Quoting Lee Nelson <lee_nelson at ncsu.edu>:
> The second question / problem relates to closing down my program. The C
> code that I am basing my Python code on is setup to capture a keyboard
> interrupt event (ie control-c or control-break) which it uses to stop
> streaming data, issue a "Daq Stop" event to data turbine, and properly close
> down the sockets. How can I capture this event in my Python code?
Hi Lee,
Have you looked at the signal module?
HTH
Philip
More information about the TriZPUG
mailing list