FreeBSD patch by Viktor Kutuzov

llvm-svn: 157735
This commit is contained in:
Filipe Cabecinhas 2012-05-31 07:49:36 +00:00
parent 16704bb15b
commit b76d5c965d
1 changed files with 1 additions and 1 deletions

View File

@ -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