Commit 257529a
committed
fix(hypervisor): don't log a killed-orphan warning for a just-stopped VM
DeleteAll takes one /proc snapshot up front, then per VM force-stops the
process and scans that snapshot for leftover VMMs. A force-rm of a running
VM therefore re-found the pid it had just terminated (stale snapshot) and
logged 'killed orphan VMM' on every delete, even though TerminateProcess
was a no-op on the already-dead pid. Gate the terminate+warn on a live
IsProcessAlive check so only a genuinely surviving VMM is reported.1 parent bfe361e commit 257529a
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
0 commit comments