[LTP] [PATCH 1/4] syscalls/migrate_pages02: convert to newlib

Li Wang liwang@redhat.com
Wed Nov 7 15:34:46 CET 2018


Jan Stancek <jstancek@redhat.com> wrote:

>
>                 /* wait until child1 is ready on node1, then migrate and
>                  * signal to check current node */
> -               if (read(child1_ready[0], &tmp, 1) != 1)
> -                       tst_brkm(TBROK | TERRNO, NULL, "read #2 failed");
> +               TST_CHECKPOINT_WAIT(1);
>

Just curious why not start from 0? TST_CHECKPOINT_WAIT(0)

-       tst_record_childstatus(NULL, child2);
> -       tst_record_childstatus(NULL, child1);
> +       SAFE_WAITPID(child1, &status, 0);
> +       SAFE_WAITPID(child2, &status, 0);
>

Maybe we could set &wstatus as a NULL? we don't inspect the status
information after its children terminates so why we store it into &status?
Beside that two questions, patch set looks good to me.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20181107/fc88417f/attachment.html>


More information about the ltp mailing list