Tvrtko Ursulin 139c72f38a drmtest: Avoid wrong PID/TID after clone races
Various C library implementations have various races with regards
to caching getpid() or TID inside pthread_kill() implementations.

For example see clone(2) glibc man page and pthread_kill
Bionic C library source.

Work around that by making sure correct PID/TGID and TID values
are retrieved from the kernel when re-raising the signal. It
can be delivered immediately after the clone system call while C
library cached copies have not yet been updated.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03 17:55:56 +01:00
..
2013-11-27 16:21:28 +02:00
2011-03-29 22:52:50 +02:00
2011-03-29 22:52:50 +02:00
2013-11-27 16:18:04 +02:00
2013-11-14 23:31:43 +01:00
2013-11-06 09:34:35 -08:00
2013-03-22 14:45:06 -03:00
2013-11-20 11:00:17 +01:00