pcmk_children 56 daemons/pacemakerd/pcmkd_subdaemons.c static pcmk_child_t pcmk_children[] = { pcmk_children 143 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[next_child]); pcmk_children 214 daemons/pacemakerd/pcmkd_subdaemons.c if (++next_child >= PCMK__NELEM(pcmk_children)) { pcmk_children 326 daemons/pacemakerd/pcmkd_subdaemons.c static int phase = PCMK__NELEM(pcmk_children) - 1; pcmk_children 329 daemons/pacemakerd/pcmkd_subdaemons.c if (phase == PCMK__NELEM(pcmk_children) - 1) { pcmk_children 335 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[phase]); pcmk_children 697 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 699 daemons/pacemakerd/pcmkd_subdaemons.c if ((pcmk_children[i].endpoint == NULL) pcmk_children 700 daemons/pacemakerd/pcmkd_subdaemons.c || (pcmk_children[i].respawn_count < 0)) { pcmk_children 704 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); pcmk_children 714 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = rounds; pcmk_children 717 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { pcmk_children 723 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint); pcmk_children 725 daemons/pacemakerd/pcmkd_subdaemons.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 734 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, WAIT_TRIES - 1); pcmk_children 742 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 749 daemons/pacemakerd/pcmkd_subdaemons.c " attempt(s)", pcmk_children[i].endpoint, pcmk_children 750 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 755 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 757 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 758 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ pcmk_children 759 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].flags |= child_active_before_startup; pcmk_children 762 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 765 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 767 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 774 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 776 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid), pcmk_children 777 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 781 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_rc_str(rc), rc); pcmk_children 790 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 791 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ pcmk_children 811 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 812 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid != 0) { pcmk_children 817 daemons/pacemakerd/pcmkd_subdaemons.c start_child(&(pcmk_children[i])); pcmk_children 842 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 843 daemons/pacemakerd/pcmkd_subdaemons.c if (!pcmk_is_set(pcmk_children[i].flags, child_needs_retry) || pcmk_children[i].pid != 0) { pcmk_children 847 daemons/pacemakerd/pcmkd_subdaemons.c crm_notice("Respawning cluster-based subdaemon: %s", pcmk_children[i].name); pcmk_children 848 daemons/pacemakerd/pcmkd_subdaemons.c if (start_child(&pcmk_children[i])) { pcmk_children 849 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].flags &= ~child_needs_retry;