Lines Matching defs:child
139 /* fork child to process request if none in progress */
140 if (found->child && kill(found->child, 0))
141 found->child = 0;
143 if (found->child)
145 if (found->child) { /* better safe than sorry - maybe */
149 if ((found->child = fork()) < 0) {
153 if (found->child) { /* PARENT */
156 (long) lastchild->uid, (long) lastchild->child,
170 * in the child, b/c that information would be later determined in
268 dlog("delaying on child %ld for %d seconds", (long) found->child, secs);
276 } while (--secs && found->child);
281 * This function is called when a child has terminated after
288 int child;
293 while ((child = waitpid((pid_t) -1, &status, WNOHANG)) > 0) {
295 while ((child = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0) {
298 /* high chances this was the last child forked */
299 if (lastchild && lastchild->child == child) {
300 lastchild->child = 0;
308 if (lostchild->child == child) {
311 lostchild->child = 0;
610 pwtab[i].child = (pid_t) 0;
675 pwtab[cur_pwtab_num].child = 0;
761 (long) pwtab[i].child,
785 fprintf(dumpfile, "lastchild->child=%d ",
786 (int) (lastc ? lastc->child : -999));
787 fprintf(dumpfile, ", child from wait3=%lu:\n", (long) this);
790 (long) pwtab[i].child, (long) pwtab[i].uid,