This patch adds the support to close all inherited fds into the child process by iterating over /proc/self/fd entries.
Currently, it iterates over all the files, for file descriptors from 3 to _SC_OPEN_MAX, which causes lldb to be slower. In comparison, the number of file descriptors held by the child process are quite small. Hence this patch makes the child process faster.
clang-tidy: error: 'lldb/Host/posix/ProcessLauncherPosixFork.h' file not found [clang-diagnostic-error]
not useful