I was working on syslog and noticed two things that I don't fully understand:
- Each call to syslog calls connect(), send(), and close()--Is this method used for a particular reason, or can I chang it so that each call just uses sendto(), and it no longer needs to use the struct syslog_data.connected variable to save state? - If the call to send() were to ever keep returning with ENOBUFS, syslog() would hang indefinitely (things like ssh login would probably stop working). It seems unlikely that this would ever happen, but I could easily add a counter to put an upper bound on the number of tries. Eric