Kaydet (Commit) 526d4363 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Return value 0 from connect() is not an error, errno is not set

No need to SAL_WARN it, it is a common non-exceptional case (when attempting
to start a second LO instance).

Change-Id: I26f2939d2f5b97ddfcc9e912e578b706567b3912
üst 9efd80ac
...@@ -260,7 +260,6 @@ oslPipe SAL_CALL osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions ...@@ -260,7 +260,6 @@ oslPipe SAL_CALL osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions
{ {
if ( connect(pPipe->m_Socket, reinterpret_cast<sockaddr *>(&addr), len) >= 0 ) if ( connect(pPipe->m_Socket, reinterpret_cast<sockaddr *>(&addr), len) >= 0 )
{ {
SAL_WARN("sal.osl.pipe", "connect() failed: " << strerror(errno));
close (pPipe->m_Socket); close (pPipe->m_Socket);
__osl_destroyPipeImpl(pPipe); __osl_destroyPipeImpl(pPipe);
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment