Don't close pseudo terminal master file descriptor on EOF
authorTamas Berghammer <tberghammer@google.com>
Thu, 19 Mar 2015 14:58:36 +0000 (14:58 +0000)
committerTamas Berghammer <tberghammer@google.com>
Thu, 19 Mar 2015 14:58:36 +0000 (14:58 +0000)
commit00bdca68399cb56044c3b6c5e268c60b06992463
tree1bc96d575d8b59b6d4fb038f9815e062e1591f82
parent539803c9e117ed6faeb444ea134877b55541db74
Don't close pseudo terminal master file descriptor on EOF

Some application on Linux an all application on android close stdout and
stderr during the libc exit stage. Previously the master file descriptor
of the pseudo terminal used to communicate with the inferior was closed
on an EOF causing a race condition and a possible SIGHUP on process
exit. After this change the master file descriptor will be closed by the
destructor of the GDBRemoteCommunicationServerLLGS class.

Differential revision: http://reviews.llvm.org/D8436

llvm-svn: 232724
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp