[LTP] [PATCH v2 2/2] shell: Prevent orphan timeout sleep processes
Li Wang
liwang@redhat.com
Sat May 8 05:57:00 CEST 2021
> > --- a/testcases/lib/tst_test.sh
> > +++ b/testcases/lib/tst_test.sh
> > @@ -439,6 +439,8 @@ _tst_kill_test()
> > {
> > local i=10
>
> > + trap " " TERM INT
Seems no need to ignore the SIGTERM, because it only sends in
the early (before timeout) phase, the _tst_kill_test has no chance
to catch a SIGTERM.
> Acked-by: Petr Vorel <pvorel@suse.cz>
Thanks for the review! I will send a patch for it.
>
> Thanks!
>
> BTW I'm surprised " " works, I'd expect : would have to be used.
" " or '' define none string makes it ignore signals.
--
Regards,
Li Wang
More information about the ltp
mailing list