fork()处理时是否共享文件描述符?

fork()处理时是否共享文件描述符?,第1张

fork()处理时是否共享文件描述符?

来自

fork(2)

       *  The child inherits copies of the parent’s set of open file descrip-         tors.   Each  file  descriptor  in the child refers to the same open          file description (see open(2)) as the corresponding file descriptor          in  the parent.  This means that the two descriptors share open file          status flags, current file offset, and signal-driven I/O attributes          (see the description of F_SETOWN and F_SETSIG in fcntl(2)).


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/4909829.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-12
下一篇2022-11-12

发表评论

登录后才能评论

评论列表(0条)

    保存