Commit baeb5e37 by Dorian Eikenberg Committed by Stéphane Graber
parent 5bb2a6e8
...@@ -581,7 +581,9 @@ Container_attach_and_possibly_wait(Container *self, PyObject *args, ...@@ -581,7 +581,9 @@ Container_attach_and_possibly_wait(Container *self, PyObject *args,
goto out; goto out;
if (wait) { if (wait) {
Py_BEGIN_ALLOW_THREADS
ret = lxc_wait_for_pid_status(pid); ret = lxc_wait_for_pid_status(pid);
Py_END_ALLOW_THREADS
/* handle case where attach fails */ /* handle case where attach fails */
if (WIFEXITED(ret) && WEXITSTATUS(ret) == 255) if (WIFEXITED(ret) && WEXITSTATUS(ret) == 255)
ret = -1; ret = -1;
......
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