Clearing O_NONBLOCK from a pipe may lose data

Thomas Wolff towo@towo.net
Tue Feb 24 13:45:00 GMT 2015


Lasse Collin had written.
> ... the possibility of EINTR is mentioned for specific commands and F_SETFL isn't among them.
A subtle and maybe minor but valid objection.

Am 23.02.2015 um 13:23 schrieb Corinna Vinschen:
> On Feb 23 11:56, Corinna Vinschen wrote:
>> On Feb 22 22:07, Lasse Collin wrote:
>>> Alternative idea: Would there be a significant downside if Cygwin
>>> remembered if non-blocking mode was enabled at some point and close()
>>> would use that flag instead of the current (non)blocking status to
>>> determine if the background thread hack should be used?
>> No, that should be doable with very minor effort.
> That's still an option, of course.
I think that sounds like a solution.
------
Thomas

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com


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