kqueue_thread
error = pthread_create(&ctx->c_th, NULL, kqueue_thread, ctx);
static void *kqueue_thread(void *);