Re: Question about clone() implementation

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 23 Sep 1999 23:55:03 +0100 (BST)


> "Operations on file descriptors performed later by one of the
> parent or child processes do not affect the other."

Ok I can see that being slightly misleading. What it means is things like
open/close/dup2

> the new table. From this it would appear that even though the
> file descriptor table is different, the child process is still
> sharing the specific fd. This means that if the child does
> an lseek() on a file, f_pos will change in both the child and the
> parent.

That is correct, and also posixly correct. So the documentation is misleading

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/