From 6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 1 Dec 2012 23:30:53 -0600 Subject: Automated update from Qt3 --- src/kernel/qprocess_unix.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/kernel/qprocess_unix.cpp') 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 -- cgit v1.2.1