summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_unix.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-08 17:42:40 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-08 17:42:40 -0500
commitb6053b1b40b51e3d9b1b679a8a1751e5472e06e2 (patch)
treea327afc6092b7c368e80e6b79dccbfd80a1567b3 /src/kernel/qeventloop_unix.cpp
parent43db215f601fd50f1fd8b502fae30c75c1bdee4a (diff)
downloadtqt3-b6053b1b40b51e3d9b1b679a8a1751e5472e06e2.tar.gz
tqt3-b6053b1b40b51e3d9b1b679a8a1751e5472e06e2.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qeventloop_unix.cpp')
-rw-r--r--src/kernel/qeventloop_unix.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/qeventloop_unix.cpp b/src/kernel/qeventloop_unix.cpp
index 1441b78c5..aa13ef8b6 100644
--- a/src/kernel/qeventloop_unix.cpp
+++ b/src/kernel/qeventloop_unix.cpp
@@ -505,7 +505,11 @@ void TQEventLoop::wakeUp()
size_t nbytes = 0;
char c = 0;
if ( ::ioctl( d->thread_pipe[0], FIONREAD, (char*)&nbytes ) >= 0 && nbytes == 0 ) {
- ::write( d->thread_pipe[1], &c, 1 );
+ if (::write( d->thread_pipe[1], &c, 1 ) < 0) {
+#if defined(QT_CHECK_RANGE)
+ tqWarning( "TQEventLoop: Internal error (failed thread pipe write)" );
+#endif
+ }
}
}