]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: socket: Explicitly error if we exceed retry count
authorCole Robinson <crobinso@redhat.com>
Tue, 12 Jan 2016 01:08:45 +0000 (20:08 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 21 Jan 2016 00:13:25 +0000 (19:13 -0500)
commit2e4d173b49949615c9820e495ae16352ac55c585
treeec437bdc4d58d8a179e895d34b9e26162152d9b9
parent4a4c73d21760eb15aa966f982cec8157afaadfca
rpc: socket: Explicitly error if we exceed retry count

When we autolaunch libvirtd for session URIs, we spin in a retry
loop waiting for the daemon to start and the connect(2) to succeed.

However if we exceed the retry count, we don't explicitly raise an
error, which can yield a slew of different error messages elsewhere
in the code.

Explicitly raise the last connect(2) failure if we run out of retries.

(cherry picked from commit 8da02d528068942303923fc4f935e77cccac9c7c)
src/rpc/virnetsocket.c