Making syslog() not block