#include "monkey.h"
#include "connection.h"
-#include "signal.h"
#include "scheduler.h"
#include "memory.h"
#include "epoll.h"
#include "cache.h"
#include "config.h"
#include "clock.h"
+#include "signals.h"
/* Register thread information */
int mk_sched_register_thread(pthread_t tid, int efd)
int mk_sched_get_thread_poll()
{
- return pthread_getspecific(epoll_fd);
+ return (int) pthread_getspecific(epoll_fd);
}
struct sched_list_node *mk_sched_get_thread_conf()
len = sizeof(m_addr);
getpeername(socket, (struct sockaddr*)&m_addr, &len);
- return inet_ntop(PF_INET, &m_addr.sin_addr, ipv4, ipv4_len);
+ inet_ntop(PF_INET, &m_addr.sin_addr, ipv4, ipv4_len);
+ return ipv4;
}
int mk_socket_close(int socket)