pcmk_children 32 daemons/pacemakerd/pcmkd_subdaemons.c static pcmk_child_t pcmk_children[] = { pcmk_children 103 daemons/pacemakerd/pcmkd_subdaemons.c static int max = SIZEOF(pcmk_children); pcmk_children 108 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[lpc].active_before_startup == FALSE) { pcmk_children 111 daemons/pacemakerd/pcmkd_subdaemons.c } else if (start_seq != pcmk_children[lpc].start_seq) { pcmk_children 114 daemons/pacemakerd/pcmkd_subdaemons.c int rc = child_liveness(&pcmk_children[lpc]); pcmk_children 121 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[lpc].respawn == TRUE) { pcmk_children 122 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("%s[%lld] terminated%s", pcmk_children[lpc].name, pcmk_children 123 daemons/pacemakerd/pcmkd_subdaemons.c (long long) PCMK__SPECIAL_PID_AS_0(pcmk_children[lpc].pid), pcmk_children 127 daemons/pacemakerd/pcmkd_subdaemons.c crm_notice("%s[%lld] terminated%s", pcmk_children[lpc].name, pcmk_children 128 daemons/pacemakerd/pcmkd_subdaemons.c (long long) PCMK__SPECIAL_PID_AS_0(pcmk_children[lpc].pid), pcmk_children 131 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_process_exit(&(pcmk_children[lpc])); pcmk_children 252 daemons/pacemakerd/pcmkd_subdaemons.c static int phase = SIZEOF(pcmk_children); pcmk_children 257 daemons/pacemakerd/pcmkd_subdaemons.c if (phase == SIZEOF(pcmk_children)) { pcmk_children 265 daemons/pacemakerd/pcmkd_subdaemons.c for (lpc = SIZEOF(pcmk_children) - 1; lpc >= 0; lpc--) { pcmk_children 266 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[lpc]); pcmk_children 291 daemons/pacemakerd/pcmkd_subdaemons.c if (phase < pcmk_children[PCMK_CHILD_CONTROLD].start_seq) { pcmk_children 637 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < SIZEOF(pcmk_children); i++) { pcmk_children 639 daemons/pacemakerd/pcmkd_subdaemons.c if ((pcmk_children[i].endpoint == NULL) pcmk_children 640 daemons/pacemakerd/pcmkd_subdaemons.c || (pcmk_children[i].respawn_count < 0)) { pcmk_children 644 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); pcmk_children 653 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = rounds; pcmk_children 656 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { pcmk_children 661 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint); pcmk_children 663 daemons/pacemakerd/pcmkd_subdaemons.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 672 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, WAIT_TRIES - 1); pcmk_children 680 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 687 daemons/pacemakerd/pcmkd_subdaemons.c " attempt(s)", pcmk_children[i].endpoint, pcmk_children 688 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 693 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 695 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 696 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ pcmk_children 697 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].active_before_startup = TRUE; pcmk_children 701 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 704 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 706 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 713 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 715 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid), pcmk_children 716 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 720 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_rc_str(rc), rc); pcmk_children 729 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < SIZEOF(pcmk_children); i++) { pcmk_children 730 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ pcmk_children 744 daemons/pacemakerd/pcmkd_subdaemons.c static int max = SIZEOF(pcmk_children); pcmk_children 750 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[lpc].pid != 0) { pcmk_children 755 daemons/pacemakerd/pcmkd_subdaemons.c if (start_seq == pcmk_children[lpc].start_seq) { pcmk_children 756 daemons/pacemakerd/pcmkd_subdaemons.c start_child(&(pcmk_children[lpc]));