bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenVMS getdtablesize.c


From: Paul Eggert
Subject: Re: OpenVMS getdtablesize.c
Date: Wed, 28 Jun 2017 15:08:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Bruno Haible wrote:
If I have a replacement getdtablesize() return 65535, that could cause
programs to assume that they could actually open that many descriptors.
This is only a theoretical risk. I know of no programs that are that
aggressive.


Although GNU 'sort' does something like that, it has code to deal with later 'open' failures due to EMFILE and/or ENFILE. Any program that allocates file descriptors that aggressively really needs to deal with 'open' failures that can occur regardless of what getdtablesize returns.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]