Lines Matching refs:mypid
202 pid_t mypid = 0; variable
251 mypid, -child_checklist[cnt].pid); in main()
260 mypid, child_signal_counter, num_pgrps); in main()
298 mypid = getpid(); in setup()
303 printf("%d: setting SIGTRAP -> SIG_DFL\n", mypid); in setup()
306 printf("%d: setting SIGCONT -> SIG_DFL\n", mypid); in setup()
311 printf("%d: setting SIGALRM -> set_create_procs\n", mypid); in setup()
318 printf("%d: setting SIGUSR1 -> ack_ready\n", mypid); in setup()
325 printf("Master: %d\n", mypid); in setup()
330 mypid, pgrps_ready, num_pgrps); in setup()
354 printf("%d: setting SIGALRM -> wakeup\n", mypid); in setup()
361 printf("%d: setting SIGUSR2 -> ack_done\n", mypid); in setup()
376 printf("%d: ack_ready, SIGUSR1 -> %d\n", mypid, in ack_ready()
384 mypid, si->si_pid); in ack_ready()
403 printf("%d: ack_done, SIGHUP -> %d\n", mypid, in ack_done()
410 printf("%d: ack_done, already told %d\n", mypid, in ack_done()
446 mypid, errno, strerror(errno)); in fork_pgrps()
451 printf("%d: forking new Manager\n", mypid); in fork_pgrps()
458 mypid = getpid(); in fork_pgrps()
467 printf("%d: fork_pgrps, SIGALRM -> %d\n", mypid, in fork_pgrps()
498 mypid); in manager()
509 printf("%d: setting SIGHUP -> SIG_IGN\n", mypid); in manager()
515 printf("%d: setting SIGALRM -> wakeup\n", mypid); in manager()
521 printf("%d: setting SIGQUIT -> graceful_exit\n", mypid); in manager()
528 printf("%d: setting SIGUSR1 -> set_signal_parents\n", mypid); in manager()
533 printf("%d: setting SIGUSR2 -> clear_signal_parents\n", mypid); in manager()
544 printf("%d: setting SIGALRM -> wakeup\n", mypid); in manager()
549 printf("%d: setting SIGUSR1 -> set_confirmed_ready\n", mypid); in manager()
554 printf("%d: setting SIGHUP -> reset_counter\n", mypid); in manager()
562 printf("%d: setting SIGUSR2 -> reply_to_child\n", mypid); in manager()
568 printf("%d: Manager, SIGUSR1 -> %d\n", mypid, in manager()
573 mypid, getppid(), errno, strerror(errno)); in manager()
584 mypid, child_signal_counter, num_procs); in manager()
589 mypid, child_signal_counter); in manager()
593 mypid, getppid()); in manager()
597 mypid, getppid(), errno, in manager()
616 printf("%d: Child start signaling\n", mypid); in set_signal_parents()
623 printf("%d: Child stop signaling\n", mypid); in clear_signal_parents()
631 printf("%d: Manager confirmed ready\n", mypid); in set_confirmed_ready()
640 printf("%d: reset_counter\n", mypid); in reset_counter()
655 mypid, si->si_pid); in reply_to_child()
662 mypid, si->si_pid); in reply_to_child()
685 mypid, errno, strerror(errno)); in fork_procs()
694 printf("%d: forking new child\n", mypid); in fork_procs()
701 mypid = getpid(); in fork_procs()
705 printf("%d: child pausing\n", mypid); in fork_procs()
720 mypid, getppid()); in fork_procs()
725 mypid, getppid(), errno, in fork_procs()