Lines Matching defs:child
60 static struct child *child_add(pid_t, int, const char *);
89 struct child {
149 struct child *c;
330 struct child *child;
385 child = tree_pop(&children, pid);
386 if (child == NULL)
389 switch (child->type) {
393 child->title, cause);
400 log_warnx("warn: lost child: %s %s",
401 child->title, cause);
414 else if (child->cause &&
418 cause = child->cause;
419 child->cause = NULL;
421 free(child->cause);
424 child->mda_id, cause);
427 child->mda_out);
428 m_add_id(p_dispatcher, child->mda_id);
441 child->path, cause);
443 unlink(child->path);
444 free(child->path);
449 fatalx("smtpd: unexpected child type");
451 free(child);
1167 /* child process */
1187 struct child *
1190 struct child *child;
1192 if ((child = calloc(1, sizeof(*child))) == NULL)
1195 child->pid = pid;
1196 child->type = type;
1197 child->title = title;
1199 tree_xset(&children, pid, child);
1201 return (child);
1318 /* parent passes the child fd over to lka */
1389 struct child *child;
1489 /* parent passes the child fd over to mda */
1491 child = child_add(pid, CHILD_MDA, NULL);
1492 child->mda_out = allout;
1493 child->mda_id = id;
1601 struct child *child;
1720 child = child_add(pid, CHILD_ENQUEUE_OFFLINE, NULL);
1721 child->path = path;