[project @ 2004-06-02 12:35:11 by simonmar]
authorsimonmar <unknown>
Wed, 2 Jun 2004 12:35:11 +0000 (12:35 +0000)
committersimonmar <unknown>
Wed, 2 Jun 2004 12:35:11 +0000 (12:35 +0000)
commit00e7fceef6b4acbc25161dfd40026d491d6e15c2
tree131cab1e14b82e891eb14b371649fe6adf7b5d91
parent801734dc5a41c57659f90cadb6c2c986b304e9f0
[project @ 2004-06-02 12:35:11 by simonmar]
The lock arrays are too small on Windows, leading to buffer overruns
and crashes when a program opens too many files.

The problem is that on Windows, we shouldn't use FD_SETSIZE to get the
max number of file descriptors: this is set to 64 in the mingw
includes.  The real maximum is 2048 (according to the crt sources), so
we now hardwire that in.

Also, put in a runtime check that we aren't overruning this array.

MERGE TO STABLE
cbits/lockFile.c