… | |
… | |
141 | { |
141 | { |
142 | /* Initialize the kernel queue */ |
142 | /* Initialize the kernel queue */ |
143 | if ((backend_fd = port_create ()) < 0) |
143 | if ((backend_fd = port_create ()) < 0) |
144 | return 0; |
144 | return 0; |
145 | |
145 | |
146 | assert (("libev: PORT_SOURCE_FD must not be zero"), PORT_SOURCE_FD); |
146 | assert (("libev: PORT_SOURCE_FD must not be zero", PORT_SOURCE_FD)); |
147 | |
147 | |
148 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
148 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
149 | |
149 | |
150 | backend_fudge = 1e-3; /* needed to compensate for port_getn returning early */ |
150 | backend_fudge = 1e-3; /* needed to compensate for port_getn returning early */ |
151 | backend_modify = port_modify; |
151 | backend_modify = port_modify; |