Commit 91a2ab4
committed
Fix interrupting update
When SIGINT is sent during last qube in a given group (admin,
template/standalone, derived), given group isn't really interrupted, so
none of the returned update status is FinalStatus.CANCELLED. This meant
that update cancel request was canceled in practice and the update
proceeded to the next group uninterrupted. And also that overall exit
code didn't inform about the cancellation request.
Fix this by returning EXIT.SIGINT if SIGINT was received, instead of
checking if any update was actually cancelled. And then check for the
EXIT.SIGINT status between update groups.
Fixes QubesOS/qubes-issues#109001 parent 32a14bb commit 91a2ab4
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | | - | |
117 | | - | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| |||
0 commit comments