core-util: Use /proc/fd on Solaris as well in pa_close_all

Gets rid of > 65,000 unnecessary close() syscalls

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2019-06-26 18:32:40 -07:00 committed by Arun Raghavan
parent 9901a26d95
commit 4be2625ef8

View file

@ -2553,7 +2553,7 @@ int pa_close_allv(const int except_fds[]) {
struct rlimit rl;
int maxfd, fd;
#ifdef __linux__
#if defined(__linux__) || defined(__sun)
int saved_errno;
DIR *d;