… | |
… | |
152 | |
152 | |
153 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
153 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ |
154 | |
154 | |
155 | /* if my reading of the opensolaris kernel sources are correct, then |
155 | /* if my reading of the opensolaris kernel sources are correct, then |
156 | * opensolaris does something very stupid: it checks if the time has already |
156 | * opensolaris does something very stupid: it checks if the time has already |
157 | * elapsed and doesn't round up if that is the case,m otherwise it DOES round |
157 | * elapsed and doesn't round up if that is the case, otherwise it DOES round |
158 | * up. Since we can't know what the case is, we need to guess by using a |
158 | * up. Since we can't know what the case is, we need to guess by using a |
159 | * "large enough" timeout. Normally, 1e-9 would be correct. |
159 | * "large enough" timeout. Normally, 1e-9 would be correct. |
160 | */ |
160 | */ |
161 | backend_mintime = 1e-3; /* needed to compensate for port_getn returning early */ |
161 | backend_mintime = 1e-3; /* needed to compensate for port_getn returning early */ |
162 | backend_modify = port_modify; |
162 | backend_modify = port_modify; |