Lines Matching defs:child
245 * Wait until all child processes will enter
395 * The test creates a cgroups and freezes it. Then it creates a child cgroup
396 * and populates it with a task. After that it checks that the child cgroup
402 char *parent, *child = NULL;
409 child = cg_name(parent, "cg_test_mkdir_B");
410 if (!child)
419 if (cg_create(child))
422 pid = cg_run_nowait(child, child_fn, NULL);
426 if (cg_wait_for_proc_count(child, 1))
429 if (cg_check_frozen(child, true))
438 if (child)
439 cg_destroy(child);
440 free(child);
449 * and removes the child. Then it checks that the parent cgroup
450 * remains frozen and it's possible to create a new child
451 * without unfreezing. The new child is frozen too.
456 char *parent, *child = NULL;
462 child = cg_name(parent, "cg_test_rmdir_B");
463 if (!child)
469 if (cg_create(child))
475 if (cg_destroy(child))
481 if (cg_create(child))
484 if (cg_check_frozen(child, true))
490 if (child)
491 cg_destroy(child);
492 free(child);
776 * which called vfork() and is waiting for a child.