summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_unix.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-01-16 12:02:47 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-26 18:45:14 +0100
commitdcdab683d6bfb6b0ad81b5903236ae70a71246e4 (patch)
treefd5767cb3a56b5361290360fc6e254c77f3a4710 /src/corelib/io/qprocess_unix.cpp
parent9efbc9f60a511e902d3f8b368296212b43222f52 (diff)
QProcess/Win: use asynchronous I/O for reading stdout and stderr
This saves us from using the 100 ms polling timer to read process output. Task-number: QTBUG-23012 Change-Id: I3f9398d7a4d30826d2d89ac04bd2fd031500ff57 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/corelib/io/qprocess_unix.cpp')
-rw-r--r--src/corelib/io/qprocess_unix.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index a862ce1015..6d5c71af90 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -357,6 +357,11 @@ void QProcessPrivate::destroyPipe(int *pipe)
}
}
+void QProcessPrivate::destroyChannel(Channel *channel)
+{
+ destroyPipe(channel->pipe);
+}
+
/*
Create the pipes to a QProcessPrivate::Channel.