Lines Matching defs:pid
754 (long)x->pid);
766 if (x->pid > 1) {
769 "killing script_name = %s pid = %ld\n",
770 x->script_name, x->pid);
773 (void) kill(-(x->pid), SIGKILL);
788 script_ps_state_file_add_entry(pid_t pid, char *script_name)
797 x->pid = pid;
806 * Remove the state element entry corresponding to pid from the
810 script_ps_state_file_remove_entry(pid_t pid)
823 /* if the state element entry is in use and pid matches */
824 if (flag == 1 && x->pid == pid) {
909 * proc files in the format "/proc/pid/as" for each pid
942 if ((rsi->pid = fork1()) == (pid_t)-1) {
949 if (rsi->pid == 0) {
999 script_ps_state_file_add_entry(rsi->pid, rsi->script_name);
1131 script_ps_state_file_remove_entry(rsi->pid);
1132 rsi->pid = 0;
1140 kill_pid(pid_t pid)
1146 (void) kill(-(pid), SIGKILL);
1151 if (waitpid(pid, &child_status, WNOHANG) == pid)
1170 if (rsi->pid > 1) {
1171 (void) kill_pid(rsi->pid);
1434 if (waitpid(rsi->pid, &child_status, 0)
1435 != rsi->pid) {
1455 (void) kill(-(rsi->pid), SIGKILL);
1473 (void) kill(rsi->pid, SIGABRT);
1608 pid_t pid,
1878 pid_t pid,
1925 pid_t pid,
1960 pid_t pid,
1995 pid_t pid,
2063 pid_t pid,
2400 pid_t pid,
2449 pid_t pid,