From: Johannes Sixt Date: Wed, 02 Mar 2011 06:49:51 GMT Subject: Re: What's cooking in git.git (Feb 2011, #07; Mon, 28) Message-ID: <4D6DE88F.9030001@viscovery.net> In-Reply-To: <7voc5uenmy.fsf@alter.siamese.dyndns.org> Am 3/1/2011 18:50, schrieb Junio C Hamano: > Erik Faye-Lund writes: >> There's also the added complication that _open_osfhandle also seems to >> be limited by this 2048 limit (see the third comment here: >> http://bugs.mysql.com/bug.php?id=24509). We use this function for >> pipes and sockets as well. This alone might be a reason to corner-case >> test the resulting binary on Windows properly. > > As long as the use of osfhandles for non filedescriptors is reasonably > bounded, it may be enough to make the 25 slop configurable per platform, > no? It's not necessary to complicate things. The file descriptors acquired with _open_osfhandle are (only) used in the implementation of pipe() and socket() and count towards the limit no more and no less than the file descriptors acquired with pipe() and socket() on Unix. -- Hannes