why two processes can still use a FIFO to communicate after the FIFO been deleted?

不羁岁月 提交于 2019-12-02 12:00:03

问题


I've made a FIFO using the mkfifo command,and created two processes to use the FIFO to communicate.But I've found that while the processes using the FIFO,I removed the FIFO,and the two processes can still even use the non-existed FIFO to send data,why?


回答1:


The object has been removed from the filesystem, but just as with all other files it will continue to exist until all open file descriptors on/from it are closed.



来源:https://stackoverflow.com/questions/36790279/why-two-processes-can-still-use-a-fifo-to-communicate-after-the-fifo-been-delete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!