Changeset 211 for trunk/src


Ignore:
Timestamp:
Oct 7, 2009, 12:27:06 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: QProcess: No need to create out/err pipes in ForwardedChannels mode.

File:
1 edited

Legend:

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

    r210 r211  
    861861
    862862    // Initialize pipes
    863     if (!createChannel(stdinChannel) ||
    864         !createChannel(stdoutChannel) ||
    865         !createChannel(stderrChannel))
     863    if (!createChannel(stdinChannel))
    866864        return;
     865
     866
     867
     868
    867869
    868870    procKey = QProcessManager::addProcess(q);
     
    936938                break;
    937939            }
    938             // qDebug() uses STDERR so only redirect if !QPROCESS_DEBUG
    939 #if !defined (QPROCESS_DEBUG)
    940940            if ((arc = DosDupHandle(realStderr, &tmpStderr)) == NO_ERROR) {
    941941                // merge stdout and stderr if asked to
     
    943943                    arc = DosDupHandle(realStdout, &realStderr);
    944944                } else {
     945
     946
    945947                    arc = DosDupHandle(stderrChannel.pipe.client, &realStderr);
     948
    946949                }
    947950            }
    948951            if (arc != NO_ERROR)
    949952                break;
    950 #endif
    951953        }
    952954
Note: See TracChangeset for help on using the changeset viewer.