Quoting Sukadev Bhattiprolu (sukadev@xxxxxxxxxxxxxxxxxx): > 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 Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers