Commit 5196ca1
committed
pkg/agent: improve reacting to shutdown signal when waiting for ok to reboot
Previous attempt in 890518e did not
make it responsive enough and actually introduced a bug as we always log
the error now as a warning, even if it's nil.
Making this more efficient actually unveiled one more bug in tests code,
which has also been fixed.
Signed-off-by: Mateusz Gozdek <[email protected]>1 parent cc61c14 commit 5196ca1
2 files changed
+36
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
214 | 221 | | |
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
219 | | - | |
220 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
221 | 229 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 230 | + | |
| 231 | + | |
226 | 232 | | |
227 | 233 | | |
228 | | - | |
| 234 | + | |
| 235 | + | |
229 | 236 | | |
230 | 237 | | |
231 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
1552 | | - | |
1553 | | - | |
1554 | 1552 | | |
1555 | 1553 | | |
1556 | 1554 | | |
| |||
1568 | 1566 | | |
1569 | 1567 | | |
1570 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1571 | 1582 | | |
1572 | 1583 | | |
1573 | 1584 | | |
| |||
1589 | 1600 | | |
1590 | 1601 | | |
1591 | 1602 | | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1592 | 1606 | | |
1593 | 1607 | | |
1594 | 1608 | | |
| |||
2017 | 2031 | | |
2018 | 2032 | | |
2019 | 2033 | | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
2020 | 2038 | | |
2021 | 2039 | | |
2022 | 2040 | | |
| |||
0 commit comments