Unverified Commit 61287e52 by Stéphane Graber Committed by GitHub

Merge pull request #3122 from terceiro/lxc-attach-exit-status

lxc-attach: make sure exit status of command is returned
parents 08260698 576b950f
...@@ -385,10 +385,9 @@ int main(int argc, char *argv[]) ...@@ -385,10 +385,9 @@ int main(int argc, char *argv[])
ret = lxc_wait_for_pid_status(pid); ret = lxc_wait_for_pid_status(pid);
if (ret < 0) if (ret < 0)
goto out; goto out;
if (WIFEXITED(ret))
wexit = WEXITSTATUS(ret);
} }
if (WIFEXITED(ret))
wexit = WEXITSTATUS(ret);
out: out:
lxc_container_put(c); lxc_container_put(c);
......
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