Are file descriptors shared when fork()ing?

后端 未结 2 653
[愿得一人]
[愿得一人] 2020-11-28 12:14

Let\'s say I open a file with open(). Then I fork() my program.

Will father and child now share the same offset for the file descriptor?

2条回答
提交回复
热议问题