Skip to content

Commit 3465a60

Browse files
Vineeth Pillaibryteise
authored andcommitted
ch_monitor: Kill the cloud-hypervisor procees on monitor close
commit c857ac8 modified the VM creation by converting the cloud-hypervisor as a daemon there by reparenting to init. So we can no longer use virProcessAbort as it assumes that the process to be killed is a child. So use virProcessKillPainfully instead. Signed-off-by: Vineeth Pillai <[email protected]>
1 parent eee6507 commit 3465a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch/ch_monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ void virCHMonitorClose(virCHMonitorPtr mon)
711711

712712
if (mon->pid > 0) {
713713
/* try cleaning up the Cloud-Hypervisor process */
714-
virProcessAbort(mon->pid);
714+
virProcessKillPainfully(mon->pid, true);
715715
mon->pid = 0;
716716
}
717717

0 commit comments

Comments
 (0)