26 Nov
2009
26 Nov
'09
2:19 p.m.
Bjørn Mork wrote:
However, I think I found one other possibility. This code in fr_event_loop() will exit if the select() fails:
rcode = select(el->maxfd + 1, &read_fds, NULL, NULL, wake); if ((rcode < 0) && (errno != EINTR)) { el->dispatch = 0; return 0; }
Might this happen due to a dead home server fd in the &read_fds?
It shouldn't. The only fail in select() is that one of the file descriptors has been closed, without updating the read_fds array. And that shouldn't happen, either. What error is select() returning? Alan DeKok.