Lines Matching refs:command_pid
2505 static pid_t command_pid; variable
2513 if (command_pid > 0)
2514 kill (command_pid, SIGTERM);
2746 command_pid = -1;
2841 command_pid = fork ();
2842 if (command_pid < 0)
2848 if (command_pid == 0)
3269 while (command_pid > 0)
3273 waited_pid = waitpid (command_pid, &status, 0);
3311 if (waited_pid == command_pid)
3312 command_pid = -1;
3337 if (command_pid > 0)
3338 kill (command_pid, SIGTERM);
3340 while (command_pid > 0)
3343 waited_pid = waitpid (command_pid, (int *) 0, 0);
3346 if (waited_pid == command_pid)
3347 command_pid = -1;
4977 if (r == command_pid)
5050 if (command_pid > 0)
5064 kill (command_pid, SIGINT);
5069 r = waitpid (command_pid, &status, WNOHANG);
5072 else if (r == command_pid)