~singpolyma/biboumi

b29d94444d176604f0847985f3ecf57091d4a47b — Florent Le Coz 8 years ago 1f1a27c
Close the epoll fd
1 files changed, 3 insertions(+), 0 deletions(-)

M louloulibs/network/poller.cpp
M louloulibs/network/poller.cpp => louloulibs/network/poller.cpp +3 -0
@@ 6,6 6,7 @@
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>

#include <cstring>
#include <iostream>


@@ 27,6 28,8 @@ Poller::Poller()

Poller::~Poller()
{
  if (this->epfd > 0)
    ::close(this->epfd);
}

void Poller::add_socket_handler(SocketHandler* socket_handler)