Unverified Commit baf6d38b by Christian Brauner Committed by GitHub

Merge pull request #3456 from brauner/2020-06-23/lxc_stop_fixes

lxccontainer: fix non-blocking container stop
parents 91dd15a4 60cd5091
...@@ -2090,6 +2090,7 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout) ...@@ -2090,6 +2090,7 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
if (ret < MAX_STATE) if (ret < MAX_STATE)
return false; return false;
}
if (pidfd >= 0) { if (pidfd >= 0) {
struct pollfd pidfd_poll = { struct pollfd pidfd_poll = {
...@@ -2125,7 +2126,6 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout) ...@@ -2125,7 +2126,6 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
TRACE("Sent signal %d to pid %d", haltsignal, pid); TRACE("Sent signal %d to pid %d", haltsignal, pid);
} }
}
if (timeout == 0) if (timeout == 0)
return true; return true;
......
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