title: In C/C++ I want to write to the same pipe multiple times
body: <p>I have a program that creates pipes between two processes.  One process constantly monitors the output of the other and when specific output is encountered it gives input through the other pipe with the <code>write()</code> function.  The problem I am having, though is that the contents of the pipe don't go through to the other process's stdin stream until I <code>close()</code> the pipe.  I want this program to infinitely loop and react every time it encounters the output it is looking for.  Is there any way to send the input to the other process without closing the pipe?</p>
  
  <p>I have searched a bit and found that named pipes can be reopened after closing them, but I wanted to find out if there was another option since I have already written the code to use unnamed pipes and I haven't yet learned to use named pipes.</p>