[Lldb-commits] [lldb] r132970 - /lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
Peter Collingbourne
peter at pcc.me.uk
Mon Jun 13 20:55:49 PDT 2011
Author: pcc
Date: Mon Jun 13 22:55:49 2011
New Revision: 132970
URL: http://llvm.org/viewvc/llvm-project?rev=132970&view=rev
Log:
If ProcessMonitor::Launch fails, post semaphore to notify caller
Modified:
lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp?rev=132970&r1=132969&r2=132970&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp Mon Jun 13 22:55:49 2011
@@ -659,8 +659,10 @@
{
LaunchArgs *args = static_cast<LaunchArgs*>(arg);
- if (!Launch(args))
+ if (!Launch(args)) {
+ sem_post(&args->m_semaphore);
return NULL;
+ }
ServeOperation(args);
return NULL;
More information about the lldb-commits
mailing list