<rdar://problem/10750012>

Remove a pseudo terminal master open and slave file descriptor that was being
used for pythong stdin. It was not hooked up correctly and was causing file
descriptor leaks.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@149098 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreter.cpp b/source/Interpreter/ScriptInterpreter.cpp
index eb7ddc2..826a002 100644
--- a/source/Interpreter/ScriptInterpreter.cpp
+++ b/source/Interpreter/ScriptInterpreter.cpp
@@ -25,21 +25,12 @@
 
 ScriptInterpreter::ScriptInterpreter (CommandInterpreter &interpreter, lldb::ScriptLanguage script_lang) :
     m_interpreter (interpreter),
-    m_script_lang (script_lang),
-    m_interpreter_pty (),
-    m_pty_slave_name ()
+    m_script_lang (script_lang)
 {
-    if (m_interpreter_pty.OpenFirstAvailableMaster (O_RDWR|O_NOCTTY, NULL, 0))
-    {
-        const char *slave_name = m_interpreter_pty.GetSlaveName(NULL, 0);
-        if (slave_name)
-            m_pty_slave_name.assign(slave_name);
-    }
 }
 
 ScriptInterpreter::~ScriptInterpreter ()
 {
-    m_interpreter_pty.CloseMasterFileDescriptor();
 }
 
 CommandInterpreter &
@@ -48,18 +39,6 @@
     return m_interpreter;
 }
 
-const char *
-ScriptInterpreter::GetScriptInterpreterPtyName ()
-{
-    return m_pty_slave_name.c_str();
-}
-
-int
-ScriptInterpreter::GetMasterFileDescriptor ()
-{
-    return m_interpreter_pty.GetMasterFileDescriptor();
-}
-
 void 
 ScriptInterpreter::CollectDataForBreakpointCommandCallback 
 (