[CRIU] Re: [PATCH cr] zdtm: add new test case for testing logic
about COW memory
Pavel Emelyanov
xemul at parallels.com
Tue Oct 30 12:05:42 EDT 2012
> +
> + parent_before_fork(cow_test_cases, addr_cow);
> + parent_before_fork(sep_test_cases, addr_sep);
> +
> + pid = test_fork();
> + if (pid < 0)
> + return -1;
> +
> + if (pid == 0)
> + return child();
We should make sure child did his preparations before going further.
> +
> + parent_post_fork(cow_test_cases, addr_cow);
> + parent_post_fork(sep_test_cases, addr_sep);
> +
> + test_daemon();
> +
> + test_waitsig();
More information about the CRIU
mailing list