Unverified Commit 7e67b81d by Christian Brauner Committed by Stéphane Graber

lxccontainer: poll takes millisecond not seconds

parent b5d3501f
......@@ -2131,7 +2131,7 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
*/
if (timeout != 0) {
ret = poll(&pidfd_poll, 1, timeout);
ret = poll(&pidfd_poll, 1, timeout * 1000);
if (ret < 0 || !(pidfd_poll.revents & POLLIN))
return false;
......
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