| 770 | } |
| 771 | |
| 772 | static void |
| 773 | init_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 | |
| 793 | int |
| 794 | main(int argc, char **argv) |