]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virLXCProcessReboot: Remove the need to re-register autodestroy callback
authorPeter Krempa <pkrempa@redhat.com>
Tue, 28 Jun 2022 15:08:00 +0000 (17:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Jul 2022 09:11:42 +0000 (11:11 +0200)
commit8eeb28449989ba20554d62544e2f4deebd744abd
tree91f4573ef1471c2c837ff76dbf3be3c30acc9a9e
parent6d155a5a8e7ee9a97a0aeda38d2039f480158e9f
virLXCProcessReboot: Remove the need to re-register autodestroy callback

Add a new flag VIR_LXC_PROCESS_CLEANUP_AUTODESTROY to
virLXCProcessCleanupFlags for skipping removal of the autodestroy
callback so that fake reboot of the container doesn't need to fetch the
connection and re-register it.

Since virLXCProcessReboot is defined before virLXCProcessCleanupFlags,
this patch also moves the flag enum typedef to the beginning of the
file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/lxc/lxc_process.c