criu/test/zdtm/lib
Kirill Tkhai e997d34b0c criu: Add raw fork() implementation
Glibc has BUG with process creation:
https://sourceware.org/bugzilla/show_bug.cgi?id=21386

It doesn't behave well when parent and child are from
different pid namespaces and have the same pid.

Use raw syscall without glibc's asserts as workaround.

Also, use raw syscall for getpid() in tests too,
as these two function go in the pair (glibc's getpid()
relies on glibc's fork()).

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-11-30 01:24:59 +03:00
..
arch s390/zdtm: Also support z900 (debian) 2017-08-09 18:51:41 +03:00
cpuid.h zdtm: Add cpuid.h 2012-12-21 17:35:44 +04:00
datagen.c zdtm: avoid arithmetic overflow in datagen and datachk 2017-10-22 06:34:53 +03:00
fs.c zdtm: rely on -D_GNU_SOURCE passed from Makefiles 2017-04-11 09:01:08 +03:00
fs.h include sys/sysmacros.h for minor/major/makedev funcs 2016-12-09 22:42:27 +03:00
groups.c zdtm: Get dir of init.pid file 2016-03-09 12:49:52 +03:00
groups.desc zdtm.py: The groups_test class for running groups 2015-12-08 14:54:52 +03:00
lock.c zdtm: rely on -D_GNU_SOURCE passed from Makefiles 2017-04-11 09:01:08 +03:00
lock.h zdtm: don't trigger BUG if futex returns EINTR 2016-09-06 19:31:19 +03:00
Makefile test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
msg.c test_msg(): avoid recursion 2015-10-26 12:12:54 +03:00
ns.c zdtm: rely on -D_GNU_SOURCE passed from Makefiles 2017-04-11 09:01:08 +03:00
ns.h zdtm: fix race in test_waitsig for multithreaded tests 2013-03-06 00:31:14 +04:00
parseargs.c zdtm: close an external tty 2012-09-13 16:09:13 +04:00
parseargs.sh zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
stop_and_chk.sh zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
streamutil.c zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
tcp.c zdtm: check a case when one port is shared between two sockets 2017-11-23 20:23:14 +03:00
test.c criu: Add raw fork() implementation 2017-11-30 01:24:59 +03:00
zdtmtst.h zdtm: check a case when one port is shared between two sockets 2017-11-23 20:23:14 +03:00