bugfix: use of C global variables at config time could cause issues when HUP reload failed in the middle.