|
|
| version 1.1, 2003/11/24 21:15:58 | version 1.2, 2003/11/24 21:32:33 |
|---|---|
| Line 116 caps_client(const char *name, uid_t uid, | Line 116 caps_client(const char *name, uid_t uid, |
| } | } |
| } | } |
| fcntl(port->cfd, F_SETFL, O_NONBLOCK); | fcntl(port->cfd, F_SETFL, O_NONBLOCK); |
| fcntl(port->cfd, F_SETFD, FD_CLOEXEC); | |
| EV_SET(&kev, port->cfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, port); | EV_SET(&kev, port->cfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, port); |
| if (kevent(port->kqfd, &kev, 1, NULL, 0, NULL) < 0) | if (kevent(port->kqfd, &kev, 1, NULL, 0, NULL) < 0) |
| goto failed; | goto failed; |