Frank, Thanks a bunch. What would be wrong with using min(getdtablesize()/2, FOPEN_MAX/2) ? I would love to see a better description >in the code< of exactly what is going on here... H