]> xenbits.xensource.com Git - libvirt.git/commit
logging: inhibit virtlogd shutdown while log files are open
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Nov 2015 11:47:41 +0000 (11:47 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Nov 2015 14:30:16 +0000 (14:30 +0000)
commitdf34363d58bbf424d5c8170a93d3ad5dcd4afb26
tree972762e8a9ff48e2f317548588af64bae31959ed
parent0d968ad715475a1660779bcdd2c5b38ad63db4cf
logging: inhibit virtlogd shutdown while log files are open

The virtlogd daemon is launched with a 30 second timeout for
unprivileged users. Unfortunately the timeout is only inhibited
while RPC clients are connected, and they only connect for a
short while to open the log file descriptor. We need to hold
an inhibition for as long as the log file descriptor itself
is open.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/logging/log_daemon.c
src/logging/log_handler.c
src/logging/log_handler.h