Project

General

Profile

Actions

Bug #372

closed

dev-poll interface problem on Solaris 10

Added by Anonymous over 18 years ago. Updated about 16 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

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:
http://forum.sun.com/thread.jspa?threadID=26396&tstart=0

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;

to:
srv->max_fds = rlim.rlim_cur - 10;

-- debnar

Actions #1

Updated by jan over 18 years ago

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

thanks for the report,

fixed in r853

Actions #2

Updated by stbuehler about 16 years ago

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

Actions

Also available in: Atom