Michael
Michael

Reputation: 21

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

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?

Upvotes: 1

Views: 102

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798486

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.

Upvotes: 4

Related Questions