|
From: Dirk M. <dm...@gm...> - 2006-02-28 11:21:52
|
On Tuesday, 28. February 2006 11:03, Roberto Diaz wrote: > I have the following code: can you please post a compileable example? > int maxFd = ::sysconf (_SC_OPEN_MAX); > rst = select (maxFd, &listeners, 0, 0, 0); > /* ................... */ I believe the problem is here. The first parameter should be the number of the most important set bit in the listeners bitfield, not some arbitrary large number you found somewhere else. Most likely maxFd for you is massively bigger than the sizeof(listeners) (multiplied by 8). Therefore, you cause the kernel to overrun a buffer, which it complains about. Dirk |