Home | History | Annotate | Download | only in autofs

Lines Matching refs:pid

64 struct pid {
65 SLIST_ENTRY(pid) next;
67 pid_t pid;
70 static SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist);
83 struct pid *cur, *p;
84 pid_t pid;
96 cur = malloc(sizeof(struct pid));
118 switch (pid = fork()) {
137 log_debugx("executing \"%s\" as pid %d", command, pid);
145 cur->pid = pid;
154 struct pid *cur, *last = NULL;
156 pid_t pid;
177 pid = wait4(cur->pid, &status, 0, NULL);
178 } while (pid == -1 && errno == EINTR);
181 log_warnx("\"%s\", pid %d, terminated with signal %d",
182 cur->command, pid, WTERMSIG(status));
187 log_warnx("\"%s\", pid %d, terminated with exit status %d",
188 cur->command, pid, WEXITSTATUS(status));
192 log_debugx("\"%s\", pid %d, terminated gracefully", cur->command, pid);
197 return pid == -1 ? -1 : status;