http://qs1969.pair.com?node_id=1074017


in reply to Re^3: How to clear named pipe to just have one line
in thread How to clear named pipe to just have one line

As process P1 is an server which is multithread and one of thread will try to read status from process P2. So process P1 will not have way to capture stdout of process P2.