Commit 246091b9 by Daniel Lezcano

add clone2 for ia64

Added clone2 for container creation on ia64. Not tested as I don't have such architecture. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent cd54d859
...@@ -53,7 +53,12 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags) ...@@ -53,7 +53,12 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags)
void *stack = alloca(stack_size) + stack_size; void *stack = alloca(stack_size) + stack_size;
pid_t ret; pid_t ret;
#ifdef __ia64__
ret = __clone2(do_clone, stack,
stack_size, flags | SIGCHLD, &clone_arg);
#else
ret = clone(do_clone, stack, flags | SIGCHLD, &clone_arg); ret = clone(do_clone, stack, flags | SIGCHLD, &clone_arg);
#endif
if (ret < 0) if (ret < 0)
ERROR("failed to clone(0x%x): %s", flags, strerror(errno)); ERROR("failed to clone(0x%x): %s", flags, strerror(errno));
......
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