Re: fork: out of memory

H. Peter Anvin (hpa@transmeta.com)
26 Nov 1997 03:31:59 GMT


Followup to: <19971125115246.40132@Elf.mj.gts.cz>
By author: Pavel Machek <pavel@Elf.mj.gts.cz>
In newsgroup: linux.dev.kernel
>
> No.
>
> Due to select() braindamage, nr. of files you can used at once is
> defined by size of structures around select(). Too bad. Unix just _is_
> broken, somewhere.
>

select() is fine.

The fd_set types and FD_* macros are NOT. If these had been pointers
with memory allocated out-of-sight to the user, then no problem (they
could have been sized dynamically at runtime.) I think a clean
source-compatible select() could actually be written in C++, but not
in C.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables