… | … | ||
---|---|---|---|
50 | server (int fd) | 50 | server (int fd) |
51 | : read_ev (this, &server::read_cb), | 51 | : read_ev (this, &server::read_cb), |
52 | log_cb (this, &server::log_msg), | 52 | log_cb (this, &server::log_msg), |
53 | getfd_cb (this, &server::getfd) | 53 | getfd_cb (this, &server::getfd) |
54 | { | 54 | { |
55 | this->fd = fd; | ||
56 | fcntl (fd, F_SETFD, FD_CLOEXEC); | 55 | fcntl (fd, F_SETFD, FD_CLOEXEC); |
57 | fcntl (fd, F_SETFL, 0); | 56 | fcntl (fd, F_SETFL, 0); |
58 | read_ev.start (fd, ev::READ); | 57 | read_ev.start (fd, ev::READ); |
59 | } | 58 | } |
60 | 59 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |