mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 21:40:45 +00:00
start: fix waitpid() blocking issue
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
This commit is contained in:
parent
b2a4850853
commit
321db0260f
@ -1901,6 +1901,11 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
|
||||
goto out_abort;
|
||||
}
|
||||
|
||||
if (!handler->init_died && handler->pid > 0) {
|
||||
ERROR("Child process is not killed");
|
||||
goto out_abort;
|
||||
}
|
||||
|
||||
status = lxc_wait_for_pid_status(handler->pid);
|
||||
if (status < 0)
|
||||
SYSERROR("Failed to retrieve status for %d", handler->pid);
|
||||
|
Loading…
Reference in New Issue
Block a user