charles-dyfis-net/repmgr — comment on commit 0957d02672ca4691b673c4cf3f4fea84c0d43211
File: repmgrd.c line 600
By erlkonig:

seem like the various chunks like this one might have refactored fairly well