1

Dup2 - for file descriptor opened by a different process

view story
linux-howto

http://www.unix.com – is it possible to duplicate file descriptors(opened by a different process) with the help of dup or dup2. the two process do not share parent child relationship as well. (HowTos)