MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / init_children_processes

Function init_children_processes

mcp/pacemaker.c:772–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772static void
773init_children_processes(void) {
774 int start_seq = 1, lpc = 0;
775 static int max = SIZEOF(pcmk_children);
776
777 /* start any children that have not been detected */
778 for (start_seq = 1; start_seq < max; start_seq++) {
779 /* dont start anything with start_seq < 1 */
780 for (lpc = 0; lpc < max; lpc++) {
781 if (pcmk_children[lpc].pid) {
782 /* we are already tracking it */
783 continue;
784 }
785
786 if (start_seq == pcmk_children[lpc].start_seq) {
787 start_child(&(pcmk_children[lpc]));
788 }
789 }
790 }
791}
792
793int
794main(int argc, char **argv)

Callers 1

mainFunction · 0.85

Calls 1

start_childFunction · 0.85

Tested by

no test coverage detected