]> git.proxmox.com Git - mirror_lxc.git/commitdiff
add clone2 for ia64
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 22 Jul 2009 17:39:18 +0000 (19:39 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 22 Jul 2009 17:39:18 +0000 (19:39 +0200)
Added clone2 for container creation on ia64.
Not tested as I don't have such architecture.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/namespace.c

index 73a22bb663dc2328935a1463f946affc9c61206c..70f67266e77aa5e63e244c0b59ed727993c48aa2 100644 (file)
@@ -53,7 +53,12 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags)
        void *stack = alloca(stack_size) + stack_size;
        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);
+#endif
        if (ret < 0)
                ERROR("failed to clone(0x%x): %s", flags, strerror(errno));