[Qemu-devel] [PATCH 11/19] linux-user: fix wait* syscall status returns

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de When calling wait4 or waitpid with a status pointer and WNOHANG, the syscall can potentially not modify the status pointer input. Now if we have guest code like: int status = 0; waitpid(pid, status, WNOHANG); if (status) breakage then we have to

[Qemu-devel] [PATCH 11/19] linux-user: fix wait* syscall status returns

2012-01-31 Thread riku . voipio
From: Alexander Graf ag...@suse.de When calling wait4 or waitpid with a status pointer and WNOHANG, the syscall can potentially not modify the status pointer input. Now if we have guest code like: int status = 0; waitpid(pid, status, WNOHANG); if (status) breakage then we have to