GNOME Bugzilla – Bug 703169
CTRL+C is not working with Sudoku started from terminal
Last modified: 2013-11-08 03:57:30 UTC
1.Bot 2.Open a terminal 3.Type 'gnome-sudoku' 4.Press "CTRL + C" Expected result: Sudoku game should stop Actual result: Nothing happens
You can only close gnome-sudoku with CTRL+C if you are root.
It's because Python catches SIGINT and translates it into a Python exception named KeyboardInterrupt, and somewhere we are ignoring all exceptions. I took a quick look but didn't find where. Why being root affects this is quite a mystery. Quick hack incoming because the Python version is (admittedly very slowly) approaching the end of its life; anyone who finds the real problem should feel free to revert it.
The following fix has been pushed: 07a8392 Properly die on SIGINT
Created attachment 259234 [details] [review] Properly die on SIGINT