From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <25c7173cb159c70f2652fd026113def1@proxima.alt.za> To: 9fans@cse.psu.edu Subject: RE: [9fans] APE select(2) From: lucio@proxima.alt.za In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 2 Apr 2004 15:40:37 +0200 Topicbox-Message-UUID: 4ef8f074-eacd-11e9-9e20-41e7f4b1d025 > With regards to the nfds test in the code given earlier, I agree that it seems that: > > if(nfds >= OPEN_MAX) > nfds = OPEN_MAX-1; > for(i = 0; i<= nfds; i++) > > should change to > > if(nfds > OPEN_MAX) > nfds = OPEN_MAX; > for(i = 0; i< nfds; i++) > Thanks, Howard, this improves things a little, enough to show promise. It also gives me the confidence that I'm not completely out of my depths. Now to do a little more digging. Promela, unfortunately, I am not at all familiar with, but this may be an occasion to catch up. ++L