Windows: Work around an oddity when a pipe with no reader is written to.
authorJohannes Sixt <johannes.sixt@telecom.at>
Fri, 17 Aug 2007 16:40:36 +0000 (18:40 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Thu, 26 Jun 2008 06:47:15 +0000 (08:47 +0200)
On Windows, write() is implemented using WriteFile(). After the reader
closed its end of the pipe, the first WriteFile() returns
ERROR_BROKEN_PIPE (which translates to EPIPE), subsequent WriteFile()s
return ERROR_NO_DATA, which is translated to EINVAL.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
No differences found