diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-08-26 16:30:26 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-08-26 16:33:11 +0000 |
commit | e4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822 (patch) | |
tree | 1f2ed2dd88489d785c3332bcc6b0d902a830e262 | |
parent | use unique_ptr (diff) | |
download | core-e4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822.tar.gz core-e4a3bf0625e4fb608ffdf0fdce67d9d7cabe6822.zip |
KDE4: don't ignore write(2) return value
Silence the glibc compile warning and actually handle a wrong
return value.
Change-Id: Icdbc8e655d4b8ad20699dfd0abdbf3405a49f898
-rw-r--r-- | vcl/unx/kde4/tst_exclude_socket_notifiers.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx b/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx index 5e7843fb7ebe..3adb95633f1b 100644 --- a/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx +++ b/vcl/unx/kde4/tst_exclude_socket_notifiers.hxx @@ -74,7 +74,8 @@ static int tst_processEventsExcludeSocket() QSocketNotifier notifier( pipes[ 0 ], QSocketNotifier::Read ); QObject::connect( ¬ifier, SIGNAL( activated( int )), &test, SLOT( slotReceived())); char dummy = 'a'; - write( pipes[ 1 ], &dummy, 1 ); + if( 1 != write( pipes[ 1 ], &dummy, 1 ) ) + return 1; QEventLoop loop; loop.processEvents( QEventLoop::ExcludeSocketNotifiers ); QVERIFY( !test.received ); |