mirror of
git://github.com/lxc/lxc
synced 2025-08-31 02:09:31 +00:00
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:
committed by
Stéphane Graber
parent
3856bc9ff5
commit
f2bbe86da4
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user