Bug #372

dev-poll interface problem on Solaris 10

Added by Anonymous about 10 years ago. Updated almost 8 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Missing in 1.5.x:


When using /dev/poll interface on Solaris 10,
ioctl(ev->devpoll_fd, DP_POLL, &dopoll);
fails. Problem seems to be in fdlimit, and check that was added in Sol10.

Long description of same problem in libevent:

Solution: do not use all available FDs, but at least one less, preferably 10 less, to be on safe side.

Change in server.c:
srv->max_fds = rlim.rlim_cur;

srv->max_fds = rlim.rlim_cur - 10;

-- debnar


#1 Updated by jan about 10 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

thanks for the report,

fixed in r853

#2 Updated by stbuehler almost 8 years ago

This "fix" probably introduced a new bug, see #1562.

Also available in: Atom