Can two processes have the same file descriptor?

Can two processes have the same file descriptor?
Answer
File descriptors are generally unique to each process, but they
can be shared by child processes created with a fork subroutine or copied by the fcntl, dup, and dup2 subroutines.
 

Tìm kiếm

Back
Top