summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-01-11 10:31:43 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-11 10:31:43 (GMT)
commit222fb565e28d5ba7f402755762c6a5df6ffcdd37 (patch)
tree4b7b83a55996fc7041f9ad20e9f7ef5aa367d134 /src
parentb53ea893caf1626a1ebfd61545525d101f1c2833 (diff)
downloadQt-222fb565e28d5ba7f402755762c6a5df6ffcdd37.zip
Qt-222fb565e28d5ba7f402755762c6a5df6ffcdd37.tar.gz
Qt-222fb565e28d5ba7f402755762c6a5df6ffcdd37.tar.bz2
move POSIX-specific debug to qprocess_unix.cpp
Merge-request: 997 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qprocess.cpp3
-rw-r--r--src/corelib/io/qprocess_unix.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index 739ac4d..da53014 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -963,9 +963,6 @@ bool QProcessPrivate::_q_canWrite()
destroyPipe(stdinChannel.pipe);
processError = QProcess::WriteError;
q->setErrorString(QProcess::tr("Error writing to process"));
-#if defined(QPROCESS_DEBUG) && !defined(Q_OS_WINCE)
- qDebug("QProcessPrivate::canWrite(), failed to write (%s)", strerror(errno));
-#endif
emit q->error(processError);
return false;
}
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index e52d132..0d5464e 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -866,6 +866,8 @@ qint64 QProcessPrivate::writeToStdin(const char *data, qint64 maxlen)
#if defined QPROCESS_DEBUG
qDebug("QProcessPrivate::writeToStdin(%p \"%s\", %lld) == %lld",
data, qt_prettyDebug(data, maxlen, 16).constData(), maxlen, written);
+ if (written == -1)
+ qDebug("QProcessPrivate::writeToStdin(), failed to write (%s)", qt_error_string(errno));
#endif
return written;
}