[LTP] [PATCH] lib/tst_test.c: Bugfix for heartbeat
Cyril Hrubis
chrubis@suse.cz
Tue Apr 13 09:42:28 CEST 2021
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
More information about the ltp
mailing list