--- CommonC++-1.9.0/src/port.cpp Tue Oct 30 01:30:18 2001 +++ port.cpp Thu Apr 4 11:20:32 2002 @@ -444,8 +444,10 @@ port = port->next; } } - poll( mfd.getList(), count + 1, timer ); + int newCount = count + 1; LeaveMutex(); + poll( mfd.getList(), newCount, timer ); + #else EnterMutex();