Unverified Commit a94c4a6d by Robert Vogelgesang Committed by Stéphane Graber

lxccontainer: fix non-blocking container stop

Stopping a lxc container with without waiting on it was broken in master. This patch fixes it. Signed-off-by: 's avatarRobert Vogelgesang <vogel@folz.de>
parent 04e0ad4e
......@@ -2090,6 +2090,7 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
if (ret < MAX_STATE)
return false;
}
if (pidfd >= 0) {
struct pollfd pidfd_poll = {
......@@ -2125,7 +2126,6 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
TRACE("Sent signal %d to pid %d", haltsignal, pid);
}
}
if (timeout == 0)
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