From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 3 Jun 2011 09:13:25 -0400 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] a pair nec bugs Topicbox-Message-UUID: eaebc4e4-ead6-11e9-9d60-3106f5b1d025 > unfortunately, that one still fails: i was willing to accept the fact that closing random file descriptors could result in lossage at this point to solve the infinite loop problem. (and any library function that opens a fd is potentially racing with any other thread closing random fds.) it's worse than that, unfortunately. since there's no close-on-exit flag, a program that makes a habit of forking with a shared fd table quickly hits the 5000 fd limit. kfs is a quick casuality. i do like your rsec(int fd), but for some reason i'd rather not admit there's a fd in there. one is tempted to paw through /proc/pid/fd. :-) - erik