mkfifo causes terminal to hang?

后端 未结 2 782
离开以前
离开以前 2021-01-23 23:06

Does mkfifo simply not work with Cygwin? A simple set of commands such as

$ mkfifo my_pipe

$ echo \"1234\" > my_pipe

just caus

2条回答
  •  悲哀的现实
    2021-01-23 23:40

    The thing with named pipes is that you need to have something on both ends. You can't write into a pipe if it isn't complete yet, so the echo command hangs until something else tries to read from that pipe, which in your case never happens.

提交回复
热议问题