Quoting Sukadev Bhattiprolu ([email protected]):
>       pid = do_eclone(do_child, CHILD_ARG, flags, nr_pids, pids);
> 
> -     if (verbose) {
> -             printf("[%d, %d]: Parent waiting for %d\n", getpid(),
> -                                     gettid(), pid);
> +     if (pid == -EBUSY) {
> +             printf("PASS: Unable to create a process with a pid that is "
> +                     "in use\n");
> +             return 0;
> +     } else if (pid < 0) {
> +             printf("ERROR: eclone(): errno %d\n", pid);
> +             return 1;

Note that if pid > 0 you don't print out an error msg.  I pushed a
trivial patch on top of this one to do so.  Pls let me know if I
misunderstood and that wasn't right.

thanks,
-serge
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to