mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 10:51:24 +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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user