On Tue, Sep 29, 2009 at 2:58 PM, Luciano Rocha <luciano@xxxxxxxxxxx> wrote:
On Tue, Sep 29, 2009 at 02:20:00PM +0530, krushnaal pai wrote:You can pass file descriptions using unix sockets. Check "man 7 unix"
> 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..
for instructions.
No. They will not share the file descriptor (offsets, flags, mode etc.
> if suppose i let the fd 4 of process A to point to the file object of
> process B(fd 5)
>
> will it work?
will not be shared).
--
Luciano Rocha <luciano@xxxxxxxxxxx>
Eurotux Informática, S.A. <http://www.eurotux.com/>