Unverified Commit 12d6e2b1 by Brian McQueen Committed by Christian Brauner

lxc_usernsexec: continuing after unshare fails leads to confusing and misleading error messages

parent 04220c0c
...@@ -441,8 +441,10 @@ int main(int argc, char *argv[]) ...@@ -441,8 +441,10 @@ int main(int argc, char *argv[])
close(pipe_fds2[0]); close(pipe_fds2[0]);
ret = lxc_read_nointr(pipe_fds1[0], buf, 1); ret = lxc_read_nointr(pipe_fds1[0], buf, 1);
if (ret <= 0) if (ret <= 0) {
CMD_SYSERROR("Failed to read from pipe file descriptor %d", pipe_fds1[0]); CMD_SYSERROR("Failed to read from pipe file descriptor %d", pipe_fds1[0]);
_exit(EXIT_FAILURE);
}
buf[0] = '1'; buf[0] = '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