summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-07-09 14:18:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-22 19:52:06 +0200
commit08db2caf6344bad88675c58250fc6b04399c29f5 (patch)
tree7722a34f9d9e739ad84b75a4b41f201308226aaa /src/corelib/io/qprocess.cpp
parent782ed5eebbe38e41cd0a9b9faf90817d72efda8f (diff)
document that validity of exitCode() depends on exitStatus() == NormalExit
Change-Id: Ied16681f08c59de16ac365b9ae76c2eacf6bc29c Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/corelib/io/qprocess.cpp')
-rw-r--r--src/corelib/io/qprocess.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index d8cd1f5fae..1be108d0a7 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -727,9 +727,11 @@ void QProcessPrivate::Channel::clear()
\fn void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus)
This signal is emitted when the process finishes. \a exitCode is the exit
- code of the process, and \a exitStatus is the exit status. After the
- process has finished, the buffers in QProcess are still intact. You can
- still read any data that the process may have written before it finished.
+ code of the process (only valid for normal exits), and \a exitStatus is
+ the exit status.
+ After the process has finished, the buffers in QProcess are still intact.
+ You can still read any data that the process may have written before it
+ finished.
\sa exitStatus()
*/
@@ -2234,6 +2236,8 @@ void QProcess::kill()
/*!
Returns the exit code of the last process that finished.
+
+ This value is not valid unless exitStatus() returns NormalExit.
*/
int QProcess::exitCode() const
{