9fans archive / 2000 / 08 / 45 / prev next From: "rob pike" <rob@pla...> Subject: Re: [9fans] pipefile with regular file Date: Tue, 1 Aug 2000 22:29:50 -0400 > 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