Commit a82f4f2
committed
Cleanup disposable on failed startup
On "cleanup()" of a disposable with "auto_cleanup" enabled, if the state
is:
- Running: "_auto_cleanup" is called by the event "domain-shutdown" and
not on "cleanup()", to avoid recalling it which would cause problems;
- Halted: "_auto_cleanup" should be called if domain is not running, but
that check is unreliable due to many moving parts, so "DispVM.start"
should contain a "cleanup(force=True)" because in that case, we are
sure to certain degree that it works, per my tests.
Bug introduced on commit f1cbf21, which
did not enforce "_auto_cleanup" on "DispVM.start"
For: #748
Fixes: QubesOS/qubes-issues#109281 parent 6a30230 commit a82f4f2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
0 commit comments