diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-01 23:30:53 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-01 23:30:53 -0600 |
commit | 6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3 (patch) | |
tree | 76f40d456bda2b31029c7fb0354cc22102f435d6 /src/kernel/qprocess_unix.cpp | |
parent | 4c50ba8f9e58dc81abaf1407cc8b203c28288370 (diff) | |
download | tqt3-6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3.tar.gz tqt3-6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3.zip |
Automated update from Qt3
Diffstat (limited to 'src/kernel/qprocess_unix.cpp')
-rw-r--r-- | src/kernel/qprocess_unix.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/kernel/qprocess_unix.cpp b/src/kernel/qprocess_unix.cpp index 01eb202df..a18672473 100644 --- a/src/kernel/qprocess_unix.cpp +++ b/src/kernel/qprocess_unix.cpp @@ -379,7 +379,9 @@ void TQProcessManager::sigchldHnd( int fd ) } char tmp; - ::read( fd, &tmp, sizeof(tmp) ); + if (::read( fd, &tmp, sizeof(tmp) ) < 0) { + tqWarning( "Could not read from file descriptor" ); + } #if defined(QT_QPROCESS_DEBUG) tqDebug( "TQProcessManager::sigchldHnd()" ); #endif @@ -562,7 +564,9 @@ QT_SIGNAL_RETTYPE qt_C_sigchldHnd( QT_SIGNAL_ARGS ) return; char a = 1; - ::write( TQProcessPrivate::procManager->sigchldFd[0], &a, sizeof(a) ); + if (::write( TQProcessPrivate::procManager->sigchldFd[0], &a, sizeof(a) ) < 0) { + tqWarning( "Could not write to file descriptor" ); + } } @@ -1131,7 +1135,7 @@ bool TQProcess::canReadLineStderr() const This function always returns immediately. The data you pass to writeToStdin() is copied into an internal memory buffer in TQProcess, and when control goes back to the event loop, TQProcess will - starting transferring data from this buffer to the running process. + starting transferring data from this buffer to the running process. � Sometimes the data will be transferred in several payloads, depending on how much data is read at a time by the process itself. When TQProcess has transferred all the data from its memory buffer to the running process, it |