mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-05 21:13:27 +00:00

Linux kernel checks for unknown flags passed via the last argument to waitpid() and fails waitpid() with EINVAL if it encounters one: From kernel/exit.c:sys_wait4() if (options & ~(WNOHANG|WUNTRACED|WCONTINUED| __WNOTHREAD|__WCLONE|__WALL)) return -EINVAL; This makes it impossible to use debugger on Linux. WAIT_ANY macro is actually supposed to be used as PID argument to wait for all children without specifying particular PID. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>