[CentOS] Help with file descriptors

Guy Boisvert boisvert.guy at videotron.ca
Thu Nov 29 03:23:42 UTC 2007

Garrick Staples wrote:
>>> Compile it, run it, viola!
>> ===> Voila!  (French is my first language!  Trying to help for your 
>> french here!)
> Um, merci bueco?
> </slaughter>

Merci beaucoup!  (Thanks a lot!)


Actually, i found that the code should read:

#include <unistd.h>
   #include <stdio.h>

   int main (void) {
     printf("current file limit: %d\n",getdtablesize());  <=== Added ()
     exit (0);

I got 300 000, it's what i have in /etc/sysctl.conf.

Guy Boisvert

More information about the CentOS mailing list