/*
- * events.c: the event handling core, poll() version
+ * events.c: the event handling core, epoll() version
*/
#include <stdio.h>
/* Get an epoll FD */
if ((epollfd=epoll_create(STARTFDS))<0) {
- Error("events",ERR_FATAL,"Unable to initialise epoll.");
+ Error("events",ERR_STOP,"Unable to initialise epoll.");
}
registerhook(HOOK_CORE_STATSREQUEST, &eventstats);
}
+void finihandlers() {
+ deregisterhook(HOOK_CORE_STATSREQUEST, &eventstats);
+ free(eventhandlers);
+}
+
/*
* checkindex():
* Given the number of a new file descriptor, makes sure that the array