[Lldb-commits] [lldb] r224652 - No need to call SetErrorToErrno when pipe2 succeeds.

Oleksiy Vyalov ovyalov at google.com
Fri Dec 19 15:52:46 PST 2014


Author: ovyalov
Date: Fri Dec 19 17:52:46 2014
New Revision: 224652

URL: http://llvm.org/viewvc/llvm-project?rev=224652&view=rev
Log:
No need to call SetErrorToErrno when pipe2 succeeds.

http://reviews.llvm.org/D6743

Modified:
    lldb/trunk/source/Host/posix/PipePosix.cpp

Modified: lldb/trunk/source/Host/posix/PipePosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/PipePosix.cpp?rev=224652&r1=224651&r2=224652&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/PipePosix.cpp (original)
+++ lldb/trunk/source/Host/posix/PipePosix.cpp Fri Dec 19 17:52:46 2014
@@ -67,10 +67,7 @@ PipePosix::CreateNew(bool child_processe
 
 #if PIPE2_SUPPORTED
     if (::pipe2(m_fds, (child_processes_inherit) ? 0 : O_CLOEXEC) == 0)
-    {
-        error.SetErrorToErrno();
         return error;
-    }
 #else
     if (::pipe(m_fds) == 0)
     {





More information about the lldb-commits mailing list