[Bug 51719] New: _pclose() does not cause child stdin to report EOF

WineHQ Bugzilla wine-bugs at winehq.org
Sat Sep 4 01:43:10 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=51719

            Bug ID: 51719
           Summary: _pclose() does not cause child stdin to report EOF
           Product: Wine
           Version: unspecified
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: msvcrt
          Assignee: wine-bugs at winehq.org
          Reporter: andres at winehq.anarazel.de
      Distribution: ---

Created attachment 70602
  --> https://bugs.winehq.org/attachment.cgi?id=70602
regression test showing the bug

Hi,

Normally when the write end of a pipe is closed, the read end should see that
upon further reads. However wine's _popen()/_pclose() do not work that way - a
child's read from stdin blocks after the parent's _pclose().

I've attached a patch to the tests to show the problem. The tests hang, but
should succeed.

I reproduced this on git commit 8b9f1e12841298591387e2b7590191610a37986e

Regards,

Andres

PS: I encountered this because I was trying to fix a bug in the windows port of
postgres without having to use windows...

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list