summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_unix_glib.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-12-01 23:30:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-12-01 23:30:53 -0600
commit6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3 (patch)
tree76f40d456bda2b31029c7fb0354cc22102f435d6 /src/kernel/qeventloop_unix_glib.cpp
parent4c50ba8f9e58dc81abaf1407cc8b203c28288370 (diff)
downloadtqt3-6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3.tar.gz
tqt3-6955a7ebe3c3a0ae2af416fc57ca1f3e9af0ecc3.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qeventloop_unix_glib.cpp')
-rw-r--r--src/kernel/qeventloop_unix_glib.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/qeventloop_unix_glib.cpp b/src/kernel/qeventloop_unix_glib.cpp
index dc973277e..cdf9f03cb 100644
--- a/src/kernel/qeventloop_unix_glib.cpp
+++ b/src/kernel/qeventloop_unix_glib.cpp
@@ -505,7 +505,9 @@ 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) {
+ // Failed!
+ }
}
}