Test for overflowing platform FD_SET size.

This commit is contained in:
Simon Kelley
2015-07-08 22:38:13 +01:00
parent 60176c7bf4
commit f6d6956261
5 changed files with 41 additions and 69 deletions

View File

@@ -424,10 +424,7 @@ void my_syslog(int priority, const char *format, ...)
void set_log_writer(fd_set *set, int *maxfdp)
{
if (entries && log_fd != -1 && connection_good)
{
FD_SET(log_fd, set);
bump_maxfd(log_fd, maxfdp);
}
bump_maxfd(set, log_fd, maxfdp);
}
void check_log_writer(fd_set *set)