Emacs uses pselect for IO multiplexing, limiting the number of available
file descriptors to FD_SETSIZE.=C2=A0 Rather, epoll/kqueue should be used, =
if
available.
Some good counter-arguments were brought u=
p:
- pselect is in the POSIX standard, whereas the possible repla=
cements (ppoll/epoll/kqueue) are not.
- The file descriptor limit=
should only be hit in pathological cases, e.g. when leaking background pro=
cesses, and is only a symptom of a bug somewhere else. A higher FD limit wo=
uld only hide the symptom, but not fix the underlying root cause.
Given that, I'm no longer convinced that switching away=
from pselect would be a good idea (but I'll leave this bug open for no=
w to provide a space for discussion).=C2=A0