pcmk_children 55 daemons/pacemakerd/pcmkd_subdaemons.c static pcmk_child_t pcmk_children[] = { pcmk_children 152 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[next_child]); pcmk_children 226 daemons/pacemakerd/pcmkd_subdaemons.c if (++next_child >= PCMK__NELEM(pcmk_children)) { pcmk_children 347 daemons/pacemakerd/pcmkd_subdaemons.c static int phase = PCMK__NELEM(pcmk_children) - 1; pcmk_children 350 daemons/pacemakerd/pcmkd_subdaemons.c if (phase == PCMK__NELEM(pcmk_children) - 1) { pcmk_children 356 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[phase]); pcmk_children 699 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 700 daemons/pacemakerd/pcmkd_subdaemons.c const char *name = pcmk__server_name(pcmk_children[i].server); pcmk_children 703 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn_count < 0) { pcmk_children 707 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); pcmk_children 717 daemons/pacemakerd/pcmkd_subdaemons.c ipc_name = pcmk__server_ipc_name(pcmk_children[i].server); pcmk_children 718 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = rounds; pcmk_children 721 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { pcmk_children 728 daemons/pacemakerd/pcmkd_subdaemons.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 752 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 759 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 760 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ pcmk_children 761 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].flags |= child_active_before_startup; pcmk_children 764 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 769 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 778 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid), pcmk_children 779 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 792 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 793 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ pcmk_children 813 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 814 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid != 0) { pcmk_children 819 daemons/pacemakerd/pcmkd_subdaemons.c start_child(&(pcmk_children[i])); pcmk_children 844 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 845 daemons/pacemakerd/pcmkd_subdaemons.c if (!pcmk_is_set(pcmk_children[i].flags, child_needs_retry) || pcmk_children[i].pid != 0) { pcmk_children 850 daemons/pacemakerd/pcmkd_subdaemons.c pcmk__server_name(pcmk_children[i].server)); pcmk_children 851 daemons/pacemakerd/pcmkd_subdaemons.c if (start_child(&pcmk_children[i])) { pcmk_children 852 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].flags &= ~child_needs_retry;