Lines Matching refs:pid
66 pid_t pid;
105 if( (pid=fork()) == 0 ) {
110 pcsync_close(pcpipe0, pcpipe1, pid, pmptr->p_fd);
116 else if (pid < 0) {
124 * The PARENT - store pid of child and close the device
126 pmptr->p_pid = pid;
136 pcsync_close(pcpipe0, pcpipe1, pid, pmptr->p_fd);
268 * - find the pid of dead child
280 pid_t pid;
294 if (rcode == -1 || (pid = info.si_pid) == 0)
310 if ((pmptr = find_pid(pid)) == NULL) {
312 log("cannot find dead child (%ld) in pmtab", pid);
319 cleanut(pid, status);
322 cleanut(pid, status);
420 * find_pid(pid) - find the corresponding pmtab entry for the pid
423 find_pid(pid)
424 pid_t pid;
429 if (pmptr->p_pid == pid) {
477 mark_service(pid)
478 pid_t pid;
484 if ((pmptr = find_pid(pid)) == NULL) {
485 log("mark_service: cannot find child (%ld) in pmtab", pid);
493 * read_pid(fd) - read pid info from PCpipe
500 pid_t pid;
503 if ((ret = read(fd,&pid,sizeof(pid))) < 0) {
512 if (ret != sizeof(pid))
515 mark_service(pid);
636 pcsync_close(p0, p1, pid, fd)
639 int pid;
643 if (pid == 0) { /* Child */