Update logic to close inherited file descriptors.
authorRumeet Dhindsa <rdhindsa@google.com>
Thu, 19 Aug 2021 21:38:04 +0000 (14:38 -0700)
committerRumeet Dhindsa <rdhindsa@google.com>
Thu, 19 Aug 2021 21:40:43 +0000 (14:40 -0700)
commitd9c5613e856cf2addfbf892fc4c1ce9ef9feceaa
tree554c510282353a9847cc316c40c7080ba251d844
parent7c8206cd2ad62cd65a1267e974fd9d49d5ff01a6
Update logic to close inherited file descriptors.

This patch adds the support to close all inherited fds into the child
process by iterating over /proc/self/fd entries.

Differential Revision: https://reviews.llvm.org/D105732
lldb/source/Host/posix/ProcessLauncherPosixFork.cpp