From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200008020230.WAA11041@cse.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] pipefile with regular file From: "rob pike" Date: Tue, 1 Aug 2000 22:29:50 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f1d34ac4-eac8-11e9-9e20-41e7f4b1d025 > But I am having a problem with reads on a filtered regular file not ever > hitting EOF: The kernel has a ref on the other end of the pipe because it's still available to be opened and used again. You'll never see EOF. There were a couple of missing calls to close in the code I sent, but even if you close everything in sight, you'll never see EOF. There's a twisty maze of circular dependencies holding the structure up. As I said in the beginning, this trick is suitable for continuous files such as devices, but not for regular files. -rob