use LOG_NDELAY, move openlog before all syslog's