res = kevent(kevent_fd, changes, nchanges, NULL, 0, NULL);
if(res < 0)
iohandler_log(IOLOG_ERROR, "could not add IODescriptor %d to kevent queue. (returned: %d)", res);
res = kevent(kevent_fd, changes, nchanges, NULL, 0, NULL);
if(res < 0)
iohandler_log(IOLOG_ERROR, "could not add IODescriptor %d to kevent queue. (returned: %d)", res);