Re: [Qemu-devel] [PATCH] linux-user: Fix fork() and vfork()

2017-02-28 Thread Peter Maydell
On 28 February 2017 at 02:51, Tim Hentenaar wrote: > A check was introduced in 5ea2fc84da1bffce749c9d0848f5336def2818bb which > causes fork() and vfork() to fail if TARGET_SIGCHLD != SIGCHLD. > > Signed-off-by: Tim Hentenaar > --- > linux-user/syscall.c |

[Qemu-devel] [PATCH] linux-user: Fix fork() and vfork()

2017-02-27 Thread Tim Hentenaar
A check was introduced in 5ea2fc84da1bffce749c9d0848f5336def2818bb which causes fork() and vfork() to fail if TARGET_SIGCHLD != SIGCHLD. Signed-off-by: Tim Hentenaar --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] linux-user: fix fork()

2017-02-17 Thread Philippe Mathieu-Daudé
On 02/16/2017 02:37 PM, Laurent Vivier wrote: Since commit 5ea2fc8 ("linux-user: Sanity check clone flags"), trying to run fork() fails with old distro on some architectures. This is the case with HP-PA and Debian 5 (Lenny). It fails on: if ((flags & CSIGNAL) != TARGET_SIGCHLD) {

Re: [Qemu-devel] [PATCH] linux-user: fix fork()

2017-02-16 Thread Peter Maydell
On 16 February 2017 at 17:37, Laurent Vivier wrote: > Since commit 5ea2fc8 ("linux-user: Sanity check clone flags"), > trying to run fork() fails with old distro on some architectures. > > This is the case with HP-PA and Debian 5 (Lenny). > > It fails on: > > if

[Qemu-devel] [PATCH] linux-user: fix fork()

2017-02-16 Thread Laurent Vivier
Since commit 5ea2fc8 ("linux-user: Sanity check clone flags"), trying to run fork() fails with old distro on some architectures. This is the case with HP-PA and Debian 5 (Lenny). It fails on: if ((flags & CSIGNAL) != TARGET_SIGCHLD) { return -TARGET_EINVAL; }