… | |
… | |
154 | } |
154 | } |
155 | |
155 | |
156 | int inline_size |
156 | int inline_size |
157 | kqueue_init (EV_P_ int flags) |
157 | kqueue_init (EV_P_ int flags) |
158 | { |
158 | { |
159 | /* Initalize the kernel queue */ |
159 | /* Initialize the kernel queue */ |
160 | if ((backend_fd = kqueue ()) < 0) |
160 | if ((backend_fd = kqueue ()) < 0) |
161 | return 0; |
161 | return 0; |
162 | |
162 | |
163 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
163 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
164 | |
164 | |