Searched refs:childpid (Results 1 – 3 of 3) sorted by relevance
20 pid_t childpid; in main() local28 childpid = fork(); in main()29 switch (childpid) { in main()43 while (waitpid(childpid, &status, 0) != childpid) { in main()
18 pid_t childpid; in main() local25 childpid = fork(); in main()26 switch( childpid ) { in main()41 while(waitpid(childpid, &status, 0) != childpid) { in main()
141 int childpid; in spawn_command() local147 childpid = fork(); in spawn_command()148 if (childpid == -1) { in spawn_command()153 if (childpid == 0) { in spawn_command()161 waitpid(childpid, &status, 0); in spawn_command()