]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDaemonAutoShutdown: Allow live update of shutdown timeout
authorPeter Krempa <pkrempa@redhat.com>
Mon, 13 Jun 2022 12:25:06 +0000 (14:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Jul 2022 12:35:30 +0000 (14:35 +0200)
commitc53e0c95353757fbeffd0a401c6659f1eb2195cd
tree68b96887410afb05f26ad42aca58970de4b5171f
parentfbc18725f20b68950d56f49f7bfeb4c08846f8b2
virNetDaemonAutoShutdown: Allow live update of shutdown timeout

Modify the code so that calling 'virNetDaemonAutoShutdown' will update
the auto shutdown timeout also for running daemons.

This involves changing the logic when to do the update of the timer so
that it can be called from both when the daemon is not yet runnign and
when doing a live update.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/locking/lock_daemon.c
src/logging/log_daemon.c
src/remote/remote_daemon.c
src/rpc/virnetdaemon.c
src/rpc/virnetdaemon.h