Commit 6b791669 by Serge Hallyn

monitor.c: sanity check on waitpid return value

parent e8b9ac8f
...@@ -207,7 +207,8 @@ int lxc_monitord_spawn(const char *lxcpath) ...@@ -207,7 +207,8 @@ int lxc_monitord_spawn(const char *lxcpath)
} }
if (pid1) { if (pid1) {
waitpid(pid1, NULL, 0); if (waitpid(pid1, NULL, 0) != pid1)
SYSERROR("unexpected waitpid return value on double-fork");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment