Lines Matching refs:phase
80 * phase 1:
87 * phase 2:
167 static int phase; /* flag for phase1 or phase2 of */
387 phase = 1; /* tell handler that we do not want to catch signals */
442 phase = 2; /* let handler know we are now expecting signals */
523 * The signal handler has two functions depending on which phase
550 * handler() : child's interrupt handler for all signals. The phase variable
552 * The phase 1 section will be run if the child process catches a signal
555 * The phase 2 section will be run if the child process catches a
564 printf("child: handler phase%d: caught signal %d.\n", phase, sig);
567 if (phase == 1) {
572 /* phase 2 (error if s gets incremented twice) */