root/src/noitd.c

Revision cd1ab55918856e8682710ede8ef2e44377887173, 340 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

more work on the kqueue stuff

  • Property mode set to 100644
Line 
1 #include "noit_defines.h"
2 #include "eventer/eventer.h"
3
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 int main(int argc, char **argv) {
8   if(eventer_choose("kqueue") == -1) {
9     fprintf(stderr, "Cannot choose kqueue\n");
10     exit(-1);
11   }
12   if(eventer_init() == -1) {
13     fprintf(stderr, "Cannot init kqueue\n");
14     exit(-1);
15   }
16   return 0;
17 }
Note: See TracBrowser for help on using the browser.