mirror of
https://github.com/utmapp/vd_agent.git
synced 2026-12-01 14:02:07 -10:00
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
This commit is contained in:
1 parent
8c465007b4
commit
0159111b22
1 file changed
+2
-1
+2
-1
@@ -291,7 +291,8 @@ int main(int argc, char *argv[])
|
||||
LOG_USER);
|
||||
|
||||
if (file_test(portdev) != 0) {
|
||||
return 0;
|
||||
syslog(LOG_ERR, "Cannot access vdagent virtio channel %s", portdev);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (do_daemonize)
|
||||
|
||||
Reference in new issue
Block a user