I've attached my patch to port.cpp.
------------------------------------------------------------------------
--- ../../CommonC++-1.9.1/src/port.cpp Tue Oct 30 00:30:18 2001
+++ port.cpp Fri Dec 28 11:53:28 2001
@@ -274,18 +300,10 @@
if(port->so >= hiwater)
hiwater = port->so + 1;
- if(!first)
- {
- first = port;
- LeaveMutex();
- Start();
- }
- else
- {
- LeaveMutex();
- Update();
- }
++count;
+ if(!first) first = port;
+ LeaveMutex();
+ Update();
}
void SocketService::Detach(SocketPort *port)
@@ -444,8 +462,8 @@
port = port->next;
}
}
- poll( mfd.getList(), count + 1, timer );
LeaveMutex();
+ poll( mfd.getList(), lastcount, timer );
#else
EnterMutex();