Cygwin FD_SETSIZE issues

Christian Becker chris@fatorange.com
Mon Jun 7 12:32:10 UTC 2004


Hi all,
dccifd currently segfaults on Cygwin because it defines FD_SETSIZE as only
64 - with EXTRA_FILES evaluating to 72, this leads to a malloc(-1) on line
378 which kill the corresponding memset two lines further.
getrlimit boundaries aren't hit, thus max_work/max_max_work aren't adjusted.
This is fairly easy to fix, just wonder what would be the cleanest
solution - for example, conditionally redefining FD_SETSIZE to 1024 would
do - though a quick research on the web suggests that ancient Windows
98/ME can practically have something around 100 files open but I guess
this isn't worth worrying about.

Chris



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.