mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 13:43:07 +00:00
s390 sys_clone is backwards
Switch the flags and sp for sys_clone for s390. Without this, lxc-execute gets a segfault on clone (of course). With this, it succeeds. Signed-off-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
47f3833097
commit
30761e835c
@ -60,8 +60,10 @@
|
||||
# error "unsupported architecture"
|
||||
# endif
|
||||
#endif
|
||||
#if __i386__ || __x86_64__ || __s390__ || __powerpc__
|
||||
#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
|
||||
|
@ -60,8 +60,10 @@
|
||||
# error "unsupported architecture"
|
||||
# endif
|
||||
#endif
|
||||
#if __i386__ || __x86_64__ || __s390__ || __powerpc__
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user