]> xenbits.xensource.com Git - libvirt.git/commit
virlog: Take a special care of syslog when setting new set of log outputs
authorErik Skultety <eskultet@redhat.com>
Wed, 30 Mar 2016 10:38:39 +0000 (12:38 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 10 Oct 2016 06:27:24 +0000 (08:27 +0200)
commit640b58abdf2c5e97476dd6e2be475cfab311e9ad
treefb5f6b27ca1be313326b824ac9b3f347980e8436
parent4c352295800106aa50178b853e6905abbe3a7a90
virlog: Take a special care of syslog when setting new set of log outputs

Now that we're in the critical section, syslog connection can be re-opened
by issuing openlog, which is something that cannot be done beforehand, since
syslog keeps its file descriptor private and changing the tag earlier might
introduce a log inconsistency if something went wrong with preparing a new set
of logging outputs in order to replace the existing one.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virlog.c