Lines Matching defs:pid
109 pid_t pid = -1;
146 pid = fork();
147 if (pid == -1)
149 if (pid == 0) {
163 wpid = waitpid(pid, &status, 0);
170 kill(pid, SIGTERM);
175 assert(wpid == pid);
177 pid = -1;
207 if (pid == -1)
210 assert(pid > 0);
211 if (wpid != pid) {
212 warnx("Interrupted; killing child (pid %ld) with %d",
213 (long)pid, exit_flag);
214 krb5_warnx(context, "Interrupted; killing child (pid %ld) with %d",
215 (long)pid, exit_flag);
216 kill(pid, exit_flag);
230 kill(pid, SIGKILL);
232 wpid = waitpid(pid, &status, 0);
233 } while (wpid != pid && errno == EINTR);