Machine dependent _write failures with EINVAL error code

后端 未结 5 834
日久生厌
日久生厌 2021-01-03 09:48

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

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-03 10:07

    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);

提交回复
热议问题