… | |
… | |
136 | int want = anfds [fd].events; |
136 | int want = anfds [fd].events; |
137 | int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) |
137 | int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) |
138 | | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0); |
138 | | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0); |
139 | |
139 | |
140 | /* check for spurious notification */ |
140 | /* check for spurious notification */ |
141 | if (expect_false (anfds [fd].egen != (unsigned char)(ev->data.u64 >> 32))) |
141 | if (expect_false (anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) |
142 | { |
142 | { |
143 | /* recreate kernel state */ |
143 | /* recreate kernel state */ |
144 | postfork = 1; |
144 | postfork = 1; |
145 | continue; |
145 | continue; |
146 | } |
146 | } |