vdagent: Return '1' when virtio device cannot be opened
commit0159111b22b449cf6a0225723c25f3a0938bce3f
authorChristophe Fergeau <cfergeau@redhat.com>
Mon, 7 Sep 2015 14:38:10 +0000 (7 16:38 +0200)
committerChristophe Fergeau <cfergeau@redhat.com>
Tue, 15 Sep 2015 16:09:03 +0000 (15 18:09 +0200)
tree796ba8649ec1d52e81c04d1e1f334c878e1fa186
parent8c465007b4baba5dc02adfda1c889ef4c1b595dc
vdagent: Return '1' when virtio device cannot be opened

The vdagent process currently exits with an error code set to 0 whenn
the virtio device cannot be opened (for example because it's missing).
This is not consistent with the other failures to startup which set the
exit code to 1. This commit ensures 1 is returned in this situation too.

Resolves: rhbz#1256704
src/vdagent.c