Lines Matching defs:children
20 * * terminates all children running inside.
24 * * Spawn many children inside it.
26 * * all children.
61 int children[10], exit_val, i, status;
74 /* Spawn many children */
75 for (i = 0; i < ARRAY_SIZE(children); i++) {
76 switch ((children[i] = fork())) {
99 for (i = 0; i < ARRAY_SIZE(children); i++) {
100 if (waitpid(children[i], &status, 0) == -1) {
102 kill(children[i], SIGTERM);
103 waitpid(children[i], &status, 0);
123 printf("cinit: all children have terminated.\n");