Ignore:
Timestamp:
Mar 7, 2010, 9:17:02 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: QProcess: Fixed a problem that, depending on the order of events, could cause a failure to write to the standard input channel of the started process (accompanied by an assertion in QProcessPrivate::writeToStdin() in debug mode).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qprocess.cpp

    r600 r646  
    18161816#endif
    18171817#if defined(Q_OS_OS2)
    1818         qint64 available = d->bytesAvailableInStdin();
    1819         if (available > 0)
    1820             d->_q_canWrite();
     1818        // try to write some bytes (there may be space in the pipe)
     1819        d->_q_canWrite();
    18211820#endif
    18221821        return 1;
     
    18321831#endif
    18331832#if defined(Q_OS_OS2)
    1834         qint64 available = d->bytesAvailableInStdin();
    1835         if (available > 0)
    1836             d->_q_canWrite();
     1833        // try to write some bytes (there may be space in the pipe)
     1834        d->_q_canWrite();
    18371835#endif
    18381836    return len;
Note: See TracChangeset for help on using the changeset viewer.