Prevent FIFO from closing / reuse closed FIFO
问题 Consider the following scenario: a FIFO named test is created. In one terminal window (A) I run cat <test and in another (B) cat >test . It is now possible to write in window B and get the output in window A. It is also possible to terminate the process A and relaunch it and still be able to use this setup as suspected. However if you terminate the process in window B, B will (as far as I know) send an EOF through the FIFO to process A and terminate that as well. In fact, if you run a process