[LTP] [PATCH 1/3] syscalls/tgkill01: add new test

Sumit Garg sumit.garg@linaro.org
Fri Mar 15 10:48:33 CET 2019


On Thu, 14 Mar 2019 at 19:34, Cyril Hrubis <chrubis@suse.cz> wrote:
>
> Hi!
> > +static void run(void)
> > +{
> > +     int i;
> > +
> > +     for (i = 0; i < n_threads; i++)
> > +             threads[i].tid = -1;
> > +
> > +     test_running = 1;
> > +     for (i = 0; i < n_threads; i++)
> > +             start_thread(&threads[i]);
>
> Just a minor nit these threads should actully be started in the test
> setup() since we stop them in the test cleanup(), otherwise the test
> breaks with the looping -i option.
>

Makes sense, will fix it.

-Sumit

> --
> Cyril Hrubis
> chrubis@suse.cz


More information about the ltp mailing list