coverity: check return from waitpid

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Dwight Engen 2013-05-07 10:57:33 -04:00 committed by Stéphane Graber
parent 3856bc9ff5
commit f2bbe86da4

View File

@ -207,7 +207,8 @@ int lxc_monitord_spawn(const char *lxcpath)
}
if (pid1) {
waitpid(pid1, NULL, 0);
if (waitpid(pid1, NULL, 0) != pid1)
return -1;
return 0;
}