[LTP] [PATCH] lib/tst_test.c: Bugfix for heartbeat

Cyril Hrubis
2021-04-13T07:42:28Z

Hi!
> > > + /*
> > > + * We need kill the task group immediately since the
> > > + * main process has exit.
> > > + */
> > > + kill(0, SIGKILL);
> >
> > Shouldn't we call exit here? There is no point in continuing once we
> > reached this point.
> >
>
> Yes, There is no point in continuing once we reached this point. Considering the test might have created sub processes with system, posix_spawn and so on,
>
> do we need to kill the task group?

Yes, I think this is the right course of action, we do the same if the
test timeouts as well.

--
Cyril Hrubis
chrubis@suse.cz