Commit 321db026 by Donghwa Jeong

start: fix waitpid() blocking issue

parent b2a48508
...@@ -1901,6 +1901,11 @@ int __lxc_start(const char *name, struct lxc_handler *handler, ...@@ -1901,6 +1901,11 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
goto out_abort; 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); status = lxc_wait_for_pid_status(handler->pid);
if (status < 0) if (status < 0)
SYSERROR("Failed to retrieve status for %d", handler->pid); SYSERROR("Failed to retrieve status for %d", handler->pid);
......
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