--- /dev/null
+diff --git a/src/util/virdaemon.c b/src/util/virdaemon.c
+index 5d92c7def7..99530fd146 100644
+--- a/src/util/virdaemon.c
++++ b/src/util/virdaemon.c
+@@ -97,15 +97,14 @@ virDaemonForkIntoBackground(const char *argv0)
+ default:
+ {
+ /* parent */
+- int got, exitstatus = 0;
++ int exitstatus = 0;
+ int ret;
+ char status;
+
+ VIR_FORCE_CLOSE(statuspipe[1]);
+
+ /* We wait to make sure the first child forked successfully */
+- if ((got = virProcessWait(pid, &exitstatus, 0)) < 0 ||
+- got != pid ||
++ if (virProcessWait(pid, &exitstatus, 0) < 0 ||
+ exitstatus != 0) {
+ goto error;
+ }
Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji
Name: libvirt
Version: 6.2.0
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: http://libvirt.org/sources/libvirt-%{version}.tar.xz
Patch2: %{name}-udevadm-settle.patch
Patch3: bashisms.patch
Patch4: %{name}-sysctl-dir.patch
+Patch5: %{name}-daemon-fix.patch
URL: http://www.libvirt.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__libtoolize}