]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't ignore all dbus connection errors
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Oct 2013 16:50:43 +0000 (17:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Oct 2013 09:33:10 +0000 (10:33 +0100)
commit6bd886000100be2adce8650d0579a2303a7bf85b
treec4e6492401565ed3f152380b7ce0fdbb3cbdbdeb
parent1815e2d0812a9cd1c85363e93db5c00e302d1c96
Don't ignore all dbus connection errors

Previous commit

  commit 7ada155cdf2bbfac16ce08f64abb455a940e2cf7
  Author: Gao feng <gaofeng@cn.fujitsu.com>
  Date:   Wed Sep 11 11:15:02 2013 +0800

    DBus: introduce virDBusIsServiceEnabled

Made the cgroups code fallback to non-systemd based setup
when dbus is not running. It was too big a hammer though,
as it did not check what error code was received when the
dbus connection failed. Thus it silently ignored serious
errors from dbus such as "too many client connections",
which should always be treated as fatal.

We only want to ignore errors if the dbus unix socket does
not exist, or if nothing is listening on it.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/nwfilter/nwfilter_driver.c
src/util/virdbus.c
src/util/virsystemd.c