On Tue, Sep 29, 2009 at 11:50 AM, krushnaal pai <krisonearth@xxxxxxxxx> wrote: > i have 2 completely different processes A and B (they do not have any > relationship) > > suppose A opens a file with file descriptor 4 and > B opens another file with file descriptor 5 > > can process A use the fd 5 (i.e using the file object of processs B) by any > means.. > NO. Each process has it's own file descriptor table. So file descriptor 5 in process A is different from file descriptor 5 in process B. > if suppose i let the fd 4 of process A to point to the file object of > process B(fd 5) > > will it work? > > is it safe? -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ