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
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
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