16 lines
298 B
Diff
16 lines
298 B
Diff
--- a/src/lxc/tools/lxc_attach.c
|
|
+++ b/src/lxc/tools/lxc_attach.c
|
|
@@ -385,10 +385,9 @@
|
|
ret = lxc_wait_for_pid_status(pid);
|
|
if (ret < 0)
|
|
goto out;
|
|
-
|
|
- if (WIFEXITED(ret))
|
|
- wexit = WEXITSTATUS(ret);
|
|
}
|
|
+ if (WIFEXITED(ret))
|
|
+ wexit = WEXITSTATUS(ret);
|
|
|
|
out:
|
|
lxc_container_put(c);
|