Re: [PATCH] linux-user/syscall: Do not ignore info.si_pid == 0 in waitid()

2022-01-29 Thread Serge Belyshev
Laurent Vivier writes: > ... > > According to wait(2), it sounds a little bit more complicated than that. > >If WNOHANG was specified in options and there were no children in a > waitable state, then >waitid() returns 0 immediately and the state of the siginfo_t > structure po

Re: [PATCH] linux-user/syscall: Do not ignore info.si_pid == 0 in waitid()

2022-01-27 Thread Laurent Vivier
Le 13/01/2022 à 10:37, Serge Belyshev a écrit : When called with WNOHANG and no child has exited, waitid returns with info.si_pid set to zero and thus check for info.si_pid != 0 will cause target siginfo structure to be uninitialized. Fixed by removing the check. Signed-off-by: Serge Belyshev

[PATCH] linux-user/syscall: Do not ignore info.si_pid == 0 in waitid()

2022-01-23 Thread Serge Belyshev
When called with WNOHANG and no child has exited, waitid returns with info.si_pid set to zero and thus check for info.si_pid != 0 will cause target siginfo structure to be uninitialized. Fixed by removing the check. Signed-off-by: Serge Belyshev Resolves: https://gitlab.com/qemu-project/qemu/-/i