[LTP] [PATCH 3/7] syscalls/clone03: Convert to new API
Cyril Hrubis
chrubis@suse.cz
Wed Aug 25 15:12:16 CEST 2021
Hi!
> static void setup(void)
> {
> - tst_sig(FORK, DEF_HANDLER, cleanup);
> - TEST_PAUSE;
> + child_stack = SAFE_MALLOC(CHILD_STACK_SIZE);
> + SAFE_PIPE(pfd);
I guess that it would be probably easier to mmap() a piece of shared
anonymous memory and used that instead of the pipe().
See for example setrlimit06.c
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list