criu/test/zdtm
Michael Holzheu 1a79b4d686 zdtm/s390x_regs_check: Fix wait() for threads
For older kernels (e.g. RHEL7 with 3.10) it seems that wait(NULL) after
ptrace(PTHREAD_ATTACH) does not work properly for threads that have
to be created via clone().

Fix this by using waitpid() with the __WALL flag.

>From the waitpid() man page:

 __WALL (since Linux 2.4)
 Wait  for  all  children, regardless of type ("clone" or "non-clone").

Reported-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17 08:40:10 +03:00
..
lib s390/zdtm: Also support z900 (debian) 2017-08-09 18:51:41 +03:00
static zdtm/s390x_regs_check: Fix wait() for threads 2017-10-17 08:40:10 +03:00
transition test: add test that verifies proper intraction between lazy-pages and THP 2017-09-16 12:30:22 +03:00
.gitignore test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
Makefile test/zdtm/Makefile: simplify 2017-04-02 18:12:10 +03:00
Makefile.inc test/zdtm/Makefiles: disable built-in rules 2017-05-10 04:26:56 +03:00