Pain
Pain

Reputation: 77

What happens if I unlink an opened fifo pipe?

I am working on an implementation of named pipes client/server for school. I have asked my teacher what happens if i use unlink while either of the pipes end is still opened. He had no answer for me.

Anyone know?

Upvotes: 3

Views: 1342

Answers (1)

nos
nos

Reputation: 229244

Nothing in particular happens, except the name is removed from the file system so no future processes can open the same named pipe.

The processes that has the pipe open will continue as normal.

Upvotes: 3

Related Questions