diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c index ea81940a43..75ebd059d7 100644 --- a/src/locking/lock_daemon.c +++ b/src/locking/lock_daemon.c @@ -919,8 +919,10 @@ int main(int argc, char **argv) { config->log_outputs, privileged, verbose, - godaemon) < 0) + godaemon) < 0) { + virDispatchError(NULL); exit(EXIT_FAILURE); + } if (!pid_file && virPidFileConstructPath(privileged, diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c index fe7fa8534a..8c3eb66895 100644 --- a/src/logging/log_daemon.c +++ b/src/logging/log_daemon.c @@ -725,8 +725,10 @@ int main(int argc, char **argv) { config->log_outputs, privileged, verbose, - godaemon) < 0) + godaemon) < 0) { + virDispatchError(NULL); exit(EXIT_FAILURE); + } if (!pid_file && virPidFileConstructPath(privileged, diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c index 84157e6cc1..1b8e982a2f 100644 --- a/src/remote/remote_daemon.c +++ b/src/remote/remote_daemon.c @@ -940,8 +940,10 @@ int main(int argc, char **argv) { config->log_outputs, privileged, verbose, - godaemon) < 0) + godaemon) < 0) { + virDispatchError(NULL); exit(EXIT_FAILURE); + } /* Let's try to initialize global variable that holds the host's boot time. */ if (virHostBootTimeInit() < 0) {