mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-08 03:24:13 +00:00
further monitor client debuggin improvements
This commit is contained in:
parent
0d899b97d3
commit
c981b8c28a
12
monitor.c
12
monitor.c
@ -122,9 +122,8 @@ int monitor_get_fds(struct pollfd *fds,int *fdcount,int fdmax)
|
||||
if (monitor_named_socket>-1)
|
||||
{
|
||||
if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO)) {
|
||||
fprintf(stderr,
|
||||
"Monitor named unix domain socket is poll() slot #%d (fd %d)\n",
|
||||
*fdcount,monitor_named_socket);
|
||||
WHYF("Monitor named unix domain socket is poll() slot #%d (fd %d)\n",
|
||||
*fdcount,monitor_named_socket);
|
||||
}
|
||||
fds[*fdcount].fd=monitor_named_socket;
|
||||
fds[*fdcount].events=POLLIN;
|
||||
@ -132,12 +131,13 @@ int monitor_get_fds(struct pollfd *fds,int *fdcount,int fdmax)
|
||||
}
|
||||
|
||||
int i;
|
||||
if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO))
|
||||
WHYF("looking at %d monitor clients",monitor_socket_count);
|
||||
for(i=0;i<monitor_socket_count;i++) {
|
||||
if ((*fdcount)>=fdmax) return -1;
|
||||
if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO)) {
|
||||
fprintf(stderr,
|
||||
"Monitor named unix domain client socket is poll() slot #%d (fd %d)\n",
|
||||
*fdcount,monitor_sockets[i].socket);
|
||||
WHY("Monitor named unix domain client socket is poll() slot #%d (fd %d)\n",
|
||||
*fdcount,monitor_sockets[i].socket);
|
||||
}
|
||||
fds[*fdcount].fd=monitor_sockets[i].socket;
|
||||
fds[*fdcount].events=POLLIN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user