Closed bagguley closed 10 years ago
Fixed in v4.0.1.
Actually it would be good if it handled a control C and stopped all listeners. On 3 Mar 2014 10:07, "Thomas Preston" notifications@github.com wrote:
Fixed in v4.0.1.
— Reply to this email directly or view it on GitHubhttps://github.com/piface/pifacecommon/issues/14#issuecomment-36496080 .
I'm really unhappy with the current handling of Ctrl+C. I'm not sure on stopping all listeners, I'd prefer something more generic so that people can choose what happens on Ctrl+C.
Any ideas?
Yeah, it needs some kind of callback I guess.
On 3 March 2014 10:38, Thomas Preston notifications@github.com wrote:
I'm really unhappy with the current handling of Ctrl+C. I'm not sure on stopping all listeners, I'd prefer something more generic so that people can choose what happens on Ctrl+C.
Any ideas?
— Reply to this email directly or view it on GitHubhttps://github.com/piface/pifacecommon/issues/14#issuecomment-36498276 .
I get this error from a keyboard interrupt:
File "/usr/lib/python2.7/dist-packages/pifacecommon/interrupts.py", line 265, in watch_port_events if e.errno != errno.EINTR: NameError: global name 'errno' is not defined
The import of errno is missing from interrupts.py