lkml.org 
[lkml]   [1999]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Question about clone() implementation
Date
From
> "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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.025 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site