Commit c08220e9 by Micahel J. Evans Committed by Stéphane Graber

Add extra debugging

This is an hybrid between Micahel's original patch and me making the new debugging statements look like our existing ones. Signed-off-by: 's avatar"Micahel J. Evans" <mjevans1983@gmail.com> Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent a9ae28a0
...@@ -64,7 +64,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags) ...@@ -64,7 +64,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags)
ret = clone(do_clone, stack + stack_size, flags | SIGCHLD, &clone_arg); ret = clone(do_clone, stack + stack_size, flags | SIGCHLD, &clone_arg);
#endif #endif
if (ret < 0) if (ret < 0)
ERROR("failed to clone(0x%x): %s", flags, strerror(errno)); ERROR("failed to clone (%#x): %s", flags, strerror(errno));
return ret; return ret;
} }
......
...@@ -548,7 +548,10 @@ static int must_drop_cap_sys_boot(struct lxc_conf *conf) ...@@ -548,7 +548,10 @@ static int must_drop_cap_sys_boot(struct lxc_conf *conf)
pid = clone(container_reboot_supported, stack, flags, &cmd); pid = clone(container_reboot_supported, stack, flags, &cmd);
#endif #endif
if (pid < 0) { if (pid < 0) {
SYSERROR("failed to clone"); if (flags & CLONE_NEWUSER)
ERRROR("failed to clone (%#x): %s (includes CLONE_NEWUSER)", flags, strerror(errno));
else
ERRROR("failed to clone (%#x): %s", flags, strerror(errno));
return -1; return -1;
} }
if (wait(&status) < 0) { if (wait(&status) < 0) {
......
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