From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Date: Mon, 27 Aug 2007 19:35:10 +0000 Subject: Re: [PATCH 1/4] export __put_task_struct for XPMEM Message-Id: <20070827193510.GJ21089@ftp.linux.org.uk> List-Id: References: <20070827155622.GA25589@sgi.com> <20070827155933.GB25589@sgi.com> <20070827161327.GG21089@ftp.linux.org.uk> <20070827181056.GA30176@sgi.com> <20070827181544.GH21089@ftp.linux.org.uk> <20070827191906.GB30176@sgi.com> In-Reply-To: <20070827191906.GB30176@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dean Nelson Cc: akpm@linux-foundation.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, tony.luck@intel.com, jes@sgi.com On Mon, Aug 27, 2007 at 02:19:06PM -0500, Dean Nelson wrote: > No operations can be done once it's closed, only while it's opened. What the hell do you mean, can't be done? fd = open(...); fp = popen("/bin/date", "r"); /* read from fp */ fclose(fp); do operations on fd And you've got yourself open fork duplicating descriptor exit closing that duplicate IO on original, after call of flush