Commit f2bbe86d by Dwight Engen Committed by Stéphane Graber

coverity: check return from waitpid

parent 3856bc9f
...@@ -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)
return -1;
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