[LTP] [RFC PATCH 6/6] syscalls/wait401: Rewrite to the new library
Jan Stancek
jstancek@redhat.com
Fri Apr 6 10:54:22 CEST 2018
----- Original Message -----
> + Get rid of the sleep(1) in the process
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> + pid = SAFE_FORK();
> + if (!pid)
> + exit(0);
This doesn't seem to test that wait4() waits. The child can
end before call to wait4().
What if added call to tst_process_state_wait() to child,
so it waits on parent to sleep? If parent sleeps, then
it's likely waiting on child.
Regards,
Jan
More information about the ltp
mailing list