[LTP] [PATCH] Terminate leftover subprocesses when main test process crashes

Cyril Hrubis chrubis@suse.cz
Fri Feb 11 13:15:14 CET 2022


Hi!
> Hmm, that's weird, when I tried that approach yesterday, it kept leaving
> the child behind. Now it seems to be working. I guess I messed up
> somehow and the test program didn't get relinked against new libltp.a...

Just FYI the process group lifetime ends with the last process exitting
it's group. Otherwise there could be all kind of races in the case when
you send the SIGTERM signal to the whole group, e.g. if the leader got
the signal first the rest of the processes may not be terminated if the
group lifetime ended with the leader...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list