Lines Matching defs:child
93 int sopipe[2]; /* pipe attached to child's stdout */
94 int sepipe[2]; /* pipe attached to child's stderr */
593 * each child (the stdout and stderr pipes).
822 if (pid == 0) { /* child */
859 * Waits for 1 child to die.
862 * Returns 0 if a child died without an error.
863 * Returns 1 if a child died with an error.
869 int wstat, child, ret;
872 if ((child = wait(&wstat)) == -1)
884 * Find our child so we can process its std output, if any.
889 if (mp->pid != child) {
909 "%s: unknown child %d\n"), myname, child);
991 * Called by a child to attach its stdout and stderr to the write side of
1008 * the child.