On 7.8.2013 1:40, Jiří Zárevúcky wrote:
> The thing is, I never figured out any reason this would be even
> remotely useful. On the other hand, not supporting this kind of
> sharing allows to make certain simplifications in the code. You could
> also move dealing with position from the server to client (I did that
> in my original VFS2 branch).

I remember we had some considerations with respect to inheriting the
position pointer when passing a file descriptor from the "parent" to the
"child" so that they could both log to the same file and not overwrite
each other's output.

And also in case of prospective >> redirection. The shell (i.e. the
"parent") needs to open the file for writing - either append only or
move the pointer to the end of the file and then pass this open file as
stdout to its "child". In either case, something needs to be inherited -
attribute or the position pointer.

Jakub


_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to