ct_env_create_real(): fix for IA64
According to clone(2) man page:
int __clone2(int (*fn)(void *),
void *child_stack_base, size_t stack_size,
int flags, void *arg, ...
/* pid_t *ptid, struct user_desc *tls, pid_t *ctid */ );
The __clone2() system call operates in the same way as
clone(), except that child_stack_base points to the lowest
address of the child's stack area, and stack_size specifies
the size of the stack pointed to by child_stack_base.
NOTE: while this patch is small and looks corrent, it is not tested on IA64,
as currently we do not have access to IA64 system, and Fedora only provides
gcc and binutils (but not glibc) for cross-compilation.
Reported-by: Ola Lundqvist <ola@inguza.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed