In dispatch.c, the value of nfds is set to the file descriptor table size. It later calls:
nfound = select(nfds, &rset, &wset, NULL, to);
In Solaris, the select function does not like it when the value of nfds is greater than FD_SETSIZE (which is set to 1024 by default).
By changing, in dispatch.c, the line nfds = getdtablesize(); to nfds = 1024;
and recompiling, the problem went away.
---------- Forwarded Message ---------- Date: Tuesday, February 08, 2005 10:40 AM -0800 From: David Alix <[EMAIL PROTECTED]> To: info-cyrus@lists.andrew.cmu.edu Subject: IMSP stopped working
I have been running imsp 1.7b on a Solaris 9 system for a few months now, and it has been running fine. This morning, the system came down uncleanly; on reboot imsp does not work. The daemon runs out of inet.d- when you telnet into the imsp port, you get the IMSP version banner
OK Cyrus IMSP version 1.7b ready
then a note Conection to .... closed by foreign host
When I run imspd -d, I get the version banner, then the daemon dies. In syslog, I get the following messages:
Feb 8 10:15:34 uxc imsp[21728]: [ID 254782 local6.info] imspd:\ warning: unable to disassocate from parent: Not owner Feb 8 10:15:34 uxc imsp[21728]: [ID 699280 local6.notice] imspd: start Feb 8 10:15:34 uxc imsp[21728]: [ID 439472 local6.error] imspd\ exiting: dispatch loop: Invalid argument
Does anyone have IMSP 1.7b running on Solaris 9? ANyone seen similar problems? Any suggestions on how to fix this?
Thanks.
___________________________________ David Alix Information Systems and Computing [EMAIL PROTECTED] (805)893-4456 --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
---------- End Forwarded Message ----------
___________________________________ David Alix Information Systems and Computing [EMAIL PROTECTED] (805)893-4456 --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html