Commit b29d9444 authored by louiz’'s avatar louiz’

Close the epoll fd

parent 1f1a27c9
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment