Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 27 Aug 2002 22:36:48 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: poll function in cygwin Message-ID: <20020828023648.GA28525@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020827111431 DOT T5475 AT cygbert DOT vinschen DOT de> <777081412 DOT 20020827132703 AT logos-m DOT ru> <20020827115845 DOT U5475 AT cygbert DOT vinschen DOT de> <20020827145458 DOT GC10134 AT redhat DOT com> <1030499901 DOT 13255 DOT 389 DOT camel AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1030499901.13255.389.camel@lifelesswks> User-Agent: Mutt/1.3.23.1i On Wed, Aug 28, 2002 at 11:58:20AM +1000, Robert Collins wrote: >On Wed, 2002-08-28 at 00:54, Christopher Faylor wrote: >>> >>I was thinking that maximum number of handles which can be waited via >> >>WaitForMultipleObjects() is 64, thus limiting a number of handles that >> >>can be select()ed. It's probably possible to work around such >> >>limitation in cygwin select() but either i've missed something or no >> >>such workaround was created in cygwin code. >> > >> >Ahem, no, you're right. >> >> Actually, it isn't that simple. It depends on what you are waiting >> for. For instance, if you are waiting for pipes, you can wait for >> an unlimited number of them. If you ware waiting for sockets, I think >> that is also true. If you are waiting for console handles, then yes, >> 64 is the maximum. > >According to MSDN, Egor is right. I wouldn't be surprised if MS allowed >more 'silently' on new OS's though.. I was not asserting that WaitForMultipleObjects could wait for >64 handles. I was saying that cygwin's select() can do so. If you look at the code you might be able to see why this is so. It's not really worth debating however. I just chimed in as the author of the select code to make it clear that the issue isn't as simple as saying that "Cygwin's select can only deal with 64 fds". In most cases it can handle many more than that. cgf (who will now probably get a lot of private email from people with select "problems") -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/