[LTP] [PATCH v2] lib: shell: Fix timeout process races

Cyril Hrubis chrubis@suse.cz
Tue Sep 21 13:30:42 CEST 2021


Hi!
> This 'pid' is the parent shell process id, so it obviously that
> tst_timeout_kill
> process would get signal SIGTERM as well.
> 
> I'm thinking maybe we should let tst_timeout_kill itself ignore SIGTERM
> otherwise we have no chance to perform the following double-check code?

I guess that signal(SIGTERM, SIG_IGN) a the start of the main() should
fix it.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list