1.7.8: write fails with EAGAIN

Robert Wruck wruck@tweerlei.de
Mon Mar 14 11:14:00 GMT 2011


Hi,

just re-tested this with cygwin1-20110313.dll.
Here is the result (output of my "writetest" program):

writing 78954543 bytes...
result is 32505856, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
[ repeating a few hundred times ]
writing 46448687 bytes...
result is 46448687, errno is 27

The total number of write attempts varies, on my test machine it's 
between 400 and 600.
The resulting output file is correct.

I also had _one_ case where the program seemed to be stuck but I was not 
able to reproduce this one:

writing 78954543 bytes...
result is 32505856, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
writing 46448687 bytes...
result is -1, errno is 27
[ repeating a few hundred times ]
writing 46448687 bytes...
result is 32505856, errno is 27
writing 13942831 bytes...
result is 0, errno is 27
writing 13942831 bytes...
result is 0, errno is 27
[ repeating until Ctrl-C ]


-Robert

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list