bugfix: use of C global variables at the configuration phase would cause troubles when HUP reload failed.