Sv: Sv: Sv: Named pipes and multiple writers
sten.kristian.ivarsson@gmail.com
sten.kristian.ivarsson@gmail.com
Fri Mar 27 14:53:36 GMT 2020
>On 3/26/2020 7:19 PM, Ken Brown via Cygwin wrote:
>> On 3/26/2020 6:39 PM, Ken Brown via Cygwin wrote:
>>> On 3/26/2020 6:01 PM, sten.kristian.ivarsson@gmail.com wrote:
>>>> The ENIXIO occurs when parallel child-processes simultaneously using
>>>> O_NONBLOCK opening the descriptor.
>>>
>>> This is consistent with my guess that the error is generated by
>>> fhandler_fifo::wait. I have a feeling that read_ready should have
>>> been created as a manual-reset event, and that more care is needed to
>>> make sure it's set when it should be.
>>>
>>>> I could provide a code-snippet
>>>> to reproduce it if wanted ?
>>>
>>> Yes, please!
>>
>> That might not be necessary. If you're able to build the git repo
>> master branch, please try the attached patch.
>Here's a better patch.
I finally succeeded to build latest master (make is not my favourite tool)
and added the patch, but still no success in my little test-program (see
attachment) when creating a write-file-descriptor with O_NONBLOCK
>Ken
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pipe.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20200327/faa68a2b/attachment.ksh>
More information about the Cygwin
mailing list