summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2015-12-21 10:17:37 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-21 20:51:27 +0200
commita5aa03acaff46aaaac0d0c3462cbd968b0a1df59 (patch)
tree0252ed884d478df0576df4041b1e2989299d7f5f /unix/main.c
parent1b7f62241023fdd000ee011824679a34d615c722 (diff)
downloadmicropython-a5aa03acaff46aaaac0d0c3462cbd968b0a1df59.tar.gz
micropython-a5aa03acaff46aaaac0d0c3462cbd968b0a1df59.zip
windows: Better handling of Ctrl-C
This builds upon the changes made in 2195046365c. Using signal() does not produce reliable results so SetConsoleCtrlHandler is used, and the handler is installed only once during initialization instead of removing it in mp_hal_set_interrupt_char when it is not strictly needed anymore, since removing it might lead to Ctrl-C events being missed because they are fired on a seperate thread which might only become alive after the handler was removed.
Diffstat (limited to 'unix/main.c')
0 files changed, 0 insertions, 0 deletions