Open a pipe will block if other side hasn't opened this pipe

man fifo to see detail informations.

In linux, if an application opened a pipe while another side hasn't opened this pipe, the open will block.

You can use `mknod' with S_FIFO attribute to create a FIFO(named pipe), then use open/read/write just as usual.
posted @ 2011-03-26 10:05  super119  阅读(193)  评论(0编辑  收藏  举报