[LTP] [PATCH v2] lib: shell: Fix timeout process races
Li Wang
liwang@redhat.com
Wed Sep 22 11:13:11 CEST 2021
> Hmm, and of course this does not work since the timeout kill process is
> around. Maybe we should make this process a separate process group from
> the start, what about calling setpgid(0, 0) instead of setting up the
> signal handler? That way we can send the signals to the whole process
> group and make sure everything has been cleaned up.
>
Agreed, that sounds like a great method.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210922/862f26ae/attachment.htm>
More information about the ltp
mailing list