Lines Matching refs:exit
64 * wait for child to terminate and check exit value
66 * if exit value is EXIT_OK
72 * else if exit is SIG_CAUGHT then BROK (signal caught
74 * else if exit is WRITE_BROK then BROK (write() to pipe failed)
75 * else if exit is HANDLE_ERR then BROK (error in child's
77 * else unexpected exit value - BROK
81 * set up to catch all catchable signals (exit SIG_CAUGHT
91 * and exit HANDLE_ERR if an error occurs)
94 * exit EXIT_OK
145 #define CHILD_EXIT(VAL) ((VAL >> 8) & 0377) /* exit value of child process */
154 /* child exit values */
238 * child to exit and report what happened.
292 * child is now releasing signals, wait and check exit value
296 /* check child's signal exit value */
302 /* get child exit value */
367 tst_resm(TBROK, "Unexpected exit code %d from child", rv);
383 int exit_val; /* exit value to send to parent */
423 * catch a signal and the interrupt handler will exit with a
428 * write_pipe() failed. Set exit value to WRITE_BROK to let
432 exit(WRITE_BROK);
463 exit(TBROK);
469 exit(TBROK);
507 /* send note to parent and exit */
510 * write_pipe() failed. Set exit value to WRITE_BROK to let
513 exit(WRITE_BROK);
516 exit(exit_val);
554 * The parent detects this situation by a child exit value of SIG_CAUGHT.
568 /* exit the child process with a value of -1 */
569 exit(SIG_CAUGHT);
576 exit(HANDLE_ERR);