now = time (NULL);
- RRDD_LOG (LOG_DEBUG, "handle_request_update (%i, %p, %i)",
- fd, (void *) buffer, buffer_size);
-
buffer_ptr = buffer;
file = buffer_ptr;
char buffer[4096];
int buffer_size;
- RRDD_LOG (LOG_DEBUG, "handle_request (%i)", fd);
-
buffer_size = read (fd, buffer, sizeof (buffer));
if (buffer_size < 1)
{
fd = *((int *) args);
- RRDD_LOG (LOG_DEBUG, "connection_thread_main: Adding myself to "
- "connetion_threads[]..");
pthread_mutex_lock (&connetion_threads_lock);
{
pthread_t *temp;
}
}
pthread_mutex_unlock (&connetion_threads_lock);
- RRDD_LOG (LOG_DEBUG, "connection_thread_main: done");
while (do_shutdown == 0)
{
if ((pollfd.revents & POLLHUP) != 0) /* normal shutdown */
{
- RRDD_LOG (LOG_DEBUG, "connection_thread_main: "
- "poll(2) returned POLLHUP.");
close (fd);
break;
}
continue;
}
- RRDD_LOG (LOG_DEBUG, "listen_thread_main: accept(2) returned fd #%i.",
- *client_sd);
-
status = pthread_create (&tid, /* attr = */ NULL, connection_thread_main,
/* args = */ (void *) client_sd);
if (status != 0)
free (client_sd);
continue;
}
-
- RRDD_LOG (LOG_DEBUG, "listen_thread_main: pthread_create succeeded: "
- "tid = %lu",
- *((unsigned long *) &tid));
} /* for (pollfds_num) */
} /* while (do_shutdown == 0) */