Resurrect pselect MainLoop implementation
authorPavel Labath <labath@google.com>
Fri, 28 Apr 2017 10:26:06 +0000 (10:26 +0000)
committerPavel Labath <labath@google.com>
Fri, 28 Apr 2017 10:26:06 +0000 (10:26 +0000)
commit836ad03fa55888e84fa1fec70f92aeacf9a92e4c
tree0070fe53b2b32ac83b13300532592ff5d8f8388a
parent45c423bcdc25712f123c3161090a776640b36021
Resurrect pselect MainLoop implementation

Summary:
It turns out that even though ppoll is available on all the android
devices we support, it does not seem to be working properly on all of
them -- MainLoop just does a busy loop with ppoll returning EINTR and
not making any progress.

This brings back the pselect implementation and makes it available on
android. I could not do any cmake checks for this as the ppoll symbol is
actually avaiable -- it just does not work.

Reviewers: beanz, eugene

Subscribers: srhines, lldb-commits

Differential Revision: https://reviews.llvm.org/D32600

llvm-svn: 301636
lldb/include/lldb/Host/MainLoop.h
lldb/source/Host/common/MainLoop.cpp