[LTP] [PATCH] clone/clone07: only kill child if clone() succeeded
Cyril Hrubis
chrubis@suse.cz
Tue Apr 19 18:44:16 CEST 2016
Hi!
> static void cleanup(void)
> {
> - kill(child_pid, SIGKILL);
> + if (child_pid > 0)
> + kill(child_pid, SIGKILL);
> }
Looking at the code, the child does just return 0 (which exits the child
process). There is no need to kill the child_pid in cleanup at all. So
I've removed the cleanup function and pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list