Pavel Borzenkov fe9c419fa5 libr/debug: fix native debugger on Linux (#5259)
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>
2016-07-01 11:13:57 +02:00
..
2015-12-04 02:57:56 +01:00
2016-06-10 01:12:07 +00:00
2016-06-17 12:19:16 +02:00
2016-06-06 17:30:07 +02:00
2016-04-21 15:21:56 +02:00
2016-04-13 21:30:48 -04:00
2016-05-24 22:22:15 +02:00
2016-05-24 22:22:15 +02:00