Commit 40ad042
committed
gmoccapy: exit on SIGTERM received during startup
#4115 installs the signal handler just before Gtk.main(), so a SIGTERM
arriving during construction is still handled by the excepthook via
KeyboardInterrupt. With no main loop running, Gtk.main_quit() asserts
and the interrupt is swallowed at the GTK C boundary, so the process
runs on until SIGKILL. Force the exit when no loop is active.1 parent 1d82815 commit 40ad042
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
0 commit comments