Re: [PATCH 1/4] export __put_task_struct for XPMEM

Al Viro
2007-08-27T19:35:10Z

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