]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: ensure daemon is spawn even if dead socket exists
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 3 Jul 2015 15:51:56 +0000 (16:51 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 17 Jul 2015 11:46:43 +0000 (12:46 +0100)
commit406ee8c226d2197ba1aaecb9cf3ad2b6df31ae44
tree132b6caebee0fa260f5f3240963545fe62e13ad1
parent54012746aea5ee37964bd615a1a5743b7d38f3a7
rpc: ensure daemon is spawn even if dead socket exists

The auto-spawn code would originally attempt to spawn the
daemon for both ENOENT and ECONNREFUSED errors from connect().
The various refactorings eventually lost this so we only
spawn the daemon on ENOENT. The result is if the daemon exits
uncleanly, so that the socket is left in the filesystem, we
will never be able to auto-spawn the daemon again.
src/rpc/virnetsocket.c