From b76d5c965dea8248a79e0aa247faf09ec5c7f19a Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Thu, 31 May 2012 07:49:36 +0000 Subject: [PATCH] FreeBSD patch by Viktor Kutuzov llvm-svn: 157735 --- lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp index bece1b2f44e2..ac8a0b94a24b 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp @@ -942,7 +942,7 @@ ProcessMonitor::Launch(LaunchArgs *args) // 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