This has some lengthy background before the actual question, however, it bears some explaining to hopefully weed out some red herrings.
Our application, developed in
According to http://msdn.microsoft.com/en-us/library/1570wh78(v=VS.90).aspx errno can take the values:
- EBADF - ENOSPC - EINVAL.
There is not EINTR on windows. Random system interrupts cause this error and are not caught by the test while (-1==nbytes && EINTR==errno);
while (-1==nbytes && EINTR==errno);