_logf_msg() now returns int (useful for 'log_info && sleep(1)' and so on)
reopen log files if SIGUSR1 arrived, refactoring