Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ def excepthook(exc_type, exc_obj, exc_tb):
# caller escalates to SIGKILL.
if issubclass(exc_type, KeyboardInterrupt):
LOG.info("gmoccapy interrupted (signal), shutting down")
try:
if Gtk.main_level() > 0:
Gtk.main_quit()
except Exception:
pass
else:
# No loop yet (startup): the interrupt is swallowed at the GTK
# C boundary, so returning resumes startup. Force the exit.
os._exit(0)
return
try:
w = app.widgets.window1
Expand Down
Loading