version 1.1.1.2, 2014/06/15 16:31:38
|
version 1.1.1.3, 2016/11/02 09:57:01
|
Line 1
|
Line 1
|
/* dnsmasq is Copyright (c) 2000-2014 Simon Kelley | /* dnsmasq is Copyright (c) 2000-2016 Simon Kelley |
|
|
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
Line 421 void my_syslog(int priority, const char *format, ...)
|
Line 421 void my_syslog(int priority, const char *format, ...)
|
} |
} |
} |
} |
|
|
void set_log_writer(fd_set *set, int *maxfdp) | void set_log_writer(void) |
{ |
{ |
if (entries && log_fd != -1 && connection_good) |
if (entries && log_fd != -1 && connection_good) |
{ | poll_listen(log_fd, POLLOUT); |
FD_SET(log_fd, set); | |
bump_maxfd(log_fd, maxfdp); | |
} | |
} |
} |
|
|
void check_log_writer(fd_set *set) | void check_log_writer(int force) |
{ |
{ |
if (log_fd != -1 && (!set || FD_ISSET(log_fd, set))) | if (log_fd != -1 && (force || poll_check(log_fd, POLLOUT))) |
log_write(); |
log_write(); |
} |
} |
|
|