diff options
author | Andrew MacPherson <andrew.macp@gmail.com> | 2014-04-02 06:57:45 +0000 |
---|---|---|
committer | Andrew MacPherson <andrew.macp@gmail.com> | 2014-04-02 06:57:45 +0000 |
commit | 82aae0d835a33e56ae8881eff301dade55a022c2 (patch) | |
tree | a612a4ebfc3fa9f4e46753d5ab5f6b7168867a84 /lldb/source/Host | |
parent | b461b1c78566d63aeb0736ae377b6c8117740d49 (diff) | |
download | bcm5719-llvm-82aae0d835a33e56ae8881eff301dade55a022c2.tar.gz bcm5719-llvm-82aae0d835a33e56ae8881eff301dade55a022c2.zip |
Use getpgid() with waitpid() in case the process pgid is not equal to its pid, as is the case with a forked subprocess. Also a couple of fixes for unit test failures from Todd Fiala.
llvm-svn: 205405
Diffstat (limited to 'lldb/source/Host')
-rw-r--r-- | lldb/source/Host/common/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 2886644c5eb..e9ea781e736 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -169,7 +169,7 @@ MonitorChildProcessThreadFunction (void *arg) const bool monitor_signals = info->monitor_signals; assert (info->pid <= UINT32_MAX); - const ::pid_t pid = monitor_signals ? -1 * info->pid : info->pid; + const ::pid_t pid = monitor_signals ? -1 * getpgid(info->pid) : info->pid; delete info; |