]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "monitor.c: sanity check on waitpid return value"
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 25 Apr 2013 03:47:50 +0000 (22:47 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 25 Apr 2013 03:47:50 +0000 (22:47 -0500)
It's reported to errors in parallel starts.

Reported-by: "S.Çağlar Onur" <caglar@10ur.org>
This reverts commit 6b7916695264238a490971e8cd87612154fc18b1.

src/lxc/monitor.c

index 5d655bd1a44b6b867ec6e0eb9ead4cdcd01c198d..0521e9ab3e4009598edf7ed839642ec5536e8289 100644 (file)
@@ -207,8 +207,7 @@ int lxc_monitord_spawn(const char *lxcpath)
        }
 
        if (pid1) {
-               if (waitpid(pid1, NULL, 0) != pid1)
-                       SYSERROR("unexpected waitpid return value on double-fork");
+               waitpid(pid1, NULL, 0);
                return 0;
        }