title: What happens to named pipes in Windows when creating process exits?
body: <p>Scenario: process creates pipe with <code>CreateNamedPipe()</code> and connects to it with <code>ConnectNamedPipe()</code>, transfers some data, then exits (with no cleanup).  Does the pipe persist?  Does the other side of it, which is opened in a different process with <code>CreateFile()</code>, error out when the creating process exits?</p>
  
  <p>More generally, what is the lifetime of named pipes?  How should stale pipes be cleaned up?</p>