[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How to increat [sic.] max open files - some answers
Hello, world!

> The problem is that if a program has an fd_set of 256 bits, the kernel
> better not pass that process a file descriptor numbered 257 under
> *any* circumstances! Hence, the kernel needs to know what the size
> each process can handle, and all functions in libc which use select()
> need to be able to deal with it.

Isn't it possible for the application to tell the kernel what max. #
of fd's it can handle? Yes, it's a bit ugly, but it would work.


 \ /
  Last update: 2005-03-22 13:38    [W:0.021 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site