[Lldb-commits] [lldb] r157735 - /lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp

Filipe Cabecinhas me at filcab.net
Thu May 31 00:49:36 PDT 2012


Author: filcab
Date: Thu May 31 02:49:36 2012
New Revision: 157735

URL: http://llvm.org/viewvc/llvm-project?rev=157735&view=rev
Log:
FreeBSD patch by Viktor Kutuzov

Modified:
    lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp

Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp?rev=157735&r1=157734&r2=157735&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp Thu May 31 02:49:36 2012
@@ -942,7 +942,7 @@
     // XXX - Release the master terminal descriptor and pass it off to the
     // XXX - ProcessMonitor instance.  Similarly stash the inferior pid.
     // For now just use stdin fd
-    monitor->m_terminal_fd = STDIN_FILENO;
+    monitor->m_terminal_fd = ::dup(STDIN_FILENO);
     monitor->m_pid = pid;
 
     // Set the terminal fd to be in non blocking mode (it simplifies the





More information about the lldb-commits mailing list