Lines Matching defs:parent
56 * set up pipe for parent/child communications
59 * parent():
84 * send parent ready message if setup went ok.
93 * send array of counters back to parent for processing.
125 static void parent(void);
150 #define READY "ready" /* signal to parent that child is set up */
165 static int pipe_fd[2]; /* file descriptors for pipe parent read */
215 parent();
237 * parent() : wait for "ready" from child, send signals to child, wait for
240 static void parent(void)
371 } /* end of parent */
374 * child() : hold signals, notify parent and wait for parent to send signals.
376 * and wait for them to be caught. Send results back to parent
383 int exit_val; /* exit value to send to parent */
394 /* an error occured - put mesg in note and send it back to parent */
398 /* an error occured - put mesg in note and send it back to parent */
419 * send note to parent (if not READY, parent will BROK) and
420 * wait for parent to send signals. The timeout clock is set so
429 * parent know what happened
452 printf("child: pid=%d waiting for parent's ready...\n", getpid());
456 * wait for parent to tell us that sigals were all sent
459 /* wait for "ready" message from parent */
467 /* parent/pipe problem */
507 /* send note to parent and exit */
511 * parent know what happened
537 /* set up mesg to send back to parent */
554 * The parent detects this situation by a child exit value of SIG_CAUGHT.
768 /* set up pipe for parent/child communications */
779 /* set up pipe for parent/child communications */