Hi,
attaching the new version of the patch.Now it simply reserves max_wal_senders slots in the ProcGlobal, whatguarantees that only walsender process could use them.
Regards,--Alexander Kukushkin