#define NTHREADS 5
+char *template = "busybox";
+
struct thread_args {
int thread_id;
int return_code;
args->return_code = 1;
if (strcmp(args->mode, "create") == 0) {
if (!c->is_defined(c)) {
- if (!c->create(c, "busybox", NULL, NULL, 1, NULL)) {
+ if (!c->create(c, template, NULL, NULL, 1, NULL)) {
fprintf(stderr, "Creating the container (%s) failed...\n", name);
goto out;
}
char *modes[] = {"create", "start", "stop", "destroy", NULL};
+ if (argc > 1)
+ template = argv[1];
+
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);