From kde-commits Tue Dec 18 19:44:31 2012 From: Vishesh Handa Date: Tue, 18 Dec 2012 19:44:31 +0000 To: kde-commits Subject: Re: [soprano] client: Fix soprano error reporting / connection status bug Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=135585916405071 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--e89a8ff2534a1d01b404d1258fe7" --e89a8ff2534a1d01b404d1258fe7 Content-Type: text/plain; charset=ISO-8859-1 Dude RC1 freeze. Next time wait for a day :P http://techbase.kde.org/Schedules/KDE4/4.10_Release_Schedule On Tue, Dec 18, 2012 at 10:42 PM, Simeon Bird wrote: > Git commit 6a3fadb5bc005eed8406e4ed72ede1e5e6905ffe by Simeon Bird. > Committed on 18/12/2012 at 18:09. > Pushed by sbird into branch 'master'. > > Fix soprano error reporting / connection status bug > > M +1 -0 client/localsocketclient.cpp > M +1 -0 client/socket.cpp > > http://commits.kde.org/soprano/6a3fadb5bc005eed8406e4ed72ede1e5e6905ffe > > diff --git a/client/localsocketclient.cpp b/client/localsocketclient.cpp > index 48ac0a0..6fc35c6 100644 > --- a/client/localsocketclient.cpp > +++ b/client/localsocketclient.cpp > @@ -131,6 +131,7 @@ bool Soprano::Client::LocalSocketClient::connect( > const QString& name ) > return true; > } > else { > + setError( d->connection.lastError() ); > return false; > } > } > diff --git a/client/socket.cpp b/client/socket.cpp > index 8c3ed04..9c66ea4 100644 > --- a/client/socket.cpp > +++ b/client/socket.cpp > @@ -220,6 +220,7 @@ bool Soprano::LocalSocket::open() > if ( ::connect( m_handle, (struct sockaddr *)&servAddr, sizeof( > servAddr ) ) < 0 ) { > setError( QString::fromLatin1( "Could not connect to server at %1 > (%2)" ).arg( m_path ).arg( strerror(errno) ) ); > ::close( m_handle ); > + m_handle = -1; > return false; > } > > --e89a8ff2534a1d01b404d1258fe7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dude

RC1 freeze. Next time wait for a da= y :P

http://techbase.kde.org/Schedules/KDE4/4.10_Release_Schedule<= br>


On = Tue, Dec 18, 2012 at 10:42 PM, Simeon Bird <spb@ias.edu> wrote:
Git commit 6a3fadb5bc005eed8406e4ed72ede1e5e6905ffe by Simeon Bird.
Committed on 18/12/2012 at 18:09.
Pushed by sbird into branch 'master'.

Fix soprano error reporting / connection status bug

M =A0+1 =A0 =A0-0 =A0 =A0client/localsocketclient.cpp
M =A0+1 =A0 =A0-0 =A0 =A0client/socket.cpp

http://commits.kde.org/soprano/6a3fadb5bc005eed8= 406e4ed72ede1e5e6905ffe

diff --git a/client/localsocketclient.cpp b/client/localsocketclient.cpp index 48ac0a0..6fc35c6 100644
--- a/client/localsocketclient.cpp
+++ b/client/localsocketclient.cpp
@@ -131,6 +131,7 @@ bool Soprano::Client::LocalSocketClient::connect( const= QString& name )
=A0 =A0 =A0 =A0 =A0 =A0 =A0return true;
=A0 =A0 =A0 =A0 =A0}
=A0 =A0 =A0 =A0 =A0else {
+ =A0 =A0 =A0 =A0 =A0 =A0setError( d->connection.lastError() );
=A0 =A0 =A0 =A0 =A0 =A0 =A0return false;
=A0 =A0 =A0 =A0 =A0}
=A0 =A0 =A0}
diff --git a/client/socket.cpp b/client/socket.cpp
index 8c3ed04..9c66ea4 100644
--- a/client/socket.cpp
+++ b/client/socket.cpp
@@ -220,6 +220,7 @@ bool Soprano::LocalSocket::open()
=A0 =A0 =A0if ( ::connect( m_handle, (struct sockaddr *)&servAddr, size= of( servAddr ) ) < 0 ) {
=A0 =A0 =A0 =A0 =A0setError( QString::fromLatin1( "Could not connect t= o server at %1 (%2)" ).arg( m_path ).arg( strerror(errno) ) );
=A0 =A0 =A0 =A0 =A0::close( m_handle );
+ =A0 =A0 =A0 =A0m_handle =3D -1;
=A0 =A0 =A0 =A0 =A0return false;
=A0 =A0 =A0}


--e89a8ff2534a1d01b404d1258fe7--