Commit cb039564 by Daniel Lezcano Committed by Daniel Lezcano

remove fork_ns code

This code is no longer used, remove it. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 50e98013
...@@ -49,18 +49,6 @@ ...@@ -49,18 +49,6 @@
# define CLONE_NEWNET 0x40000000 # define CLONE_NEWNET 0x40000000
#endif #endif
#if __i386__ || __x86_64__ || __powerpc__
# define fork_ns(flags) syscall(SYS_clone, flags|SIGCHLD, NULL)
#elif __s390__
# define fork_ns(flags) syscall(SYS_clone, NULL, flags|SIGCHLD)
#elif __ia64__
# define fork_ns(flags) syscall(SYS_clone2, flags|SIGCHLD, NULL)
#else
# error "unsupported architecture"
#endif
#define unshare_ns(flags) unshare(flags)
extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags); extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags);
#endif #endif
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