Home | History | Annotate | Download | only in unistd

Lines Matching refs:pid

45 static struct pid {
46 struct pid *next;
48 pid_t pid;
54 struct pid * volatile cur;
57 pid_t pid;
64 if ((cur = malloc(sizeof(struct pid))) == NULL)
72 switch (pid = vfork()) {
81 struct pid *pcur;
126 cur->pid = pid;
141 struct pid *cur, *last;
143 pid_t pid;
156 pid = waitpid(cur->pid, &pstat, 0);
157 } while (pid == -1 && errno == EINTR);
166 return (pid == -1 ? -1 : pstat);