]> git.saurik.com Git - wxWidgets.git/commit
Fix spurious errors when writing to the child process stdin under Unix.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Nov 2010 14:04:37 +0000 (14:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Nov 2010 14:04:37 +0000 (14:04 +0000)
commit3b81609771af63664f9265c503e5f1668906969a
tree30f4471268236d39e0e1ddd74c2ab0678fac6edf
parentf895c3fce291ad1071041b8ddff8ecf283c5b68e
Fix spurious errors when writing to the child process stdin under Unix.

Since the child pipe was made non-blocking in r65993, it became possible to
write to child process without deadlocking when the pipe became full. However
this still resulted in an error from wxFileOutputStream as it didn't handle
EAGAIN returned from write() any differently than any other error, even though
it is an expected situation in this particular case.

Change Unix wxExecute() to use wxPipeOutputStream which ignores EAGAIN unlike
wxFileOutputStream to fix this.

See #12636.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/unix/pipe.h
src/unix/utilsunx.cpp