]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
rotatingfile: mark log files as close-on-exec
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 4 Dec 2015 17:23:15 +0000 (17:23 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 4 Dec 2015 18:18:39 +0000 (18:18 +0000)
commitbf02b123d181cc6821b9a0c4a136814bd54b7e67
tree5a4b757175c31e1255eb67608e281163904ce0b0
parenta8bb330f941dd4658112c91d6ac217a5aa086838
rotatingfile: mark log files as close-on-exec

The log file descriptor associated with the virRotatingFile
struct should be marked close-on-exec, as even when virtlogd
re-exec's itself it expect to open the log file fresh. It
does not need to preserve the logfile handles, only the network
client FDs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/virrotatingfile.c