title: Deadlock on closing a pipe while another thread reads this pipe?
body: <p>I'm having a deadlock on closing a pipe:</p>
  
  <pre><code>close(myPipeFD);
  </code></pre>
  
  <p>Another thread, the reading thread, is in a blocking read state from this exact same pipe:</p>
  
  <pre><code>ssize_t sizeRead = read(myPipeFD, buffer, bufferSize);
  </code></pre>
  
  <p>Could it be the cause of such deadlock? I thought that <code>read</code> would have immediately returned <code>sizeRead == 0</code>? Should I emit an interruption in this reading thread?</p>