aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-26 18:32:40 -0700
committerArun Raghavan <arun@arunraghavan.net>2019-07-01 01:37:04 +0000
commit4be2625ef8cc3270827e522efadc1fb78439410d (patch)
tree52186ae67fd4103b8fc0f3280a4127f7ed6a0ae6
parent9901a26d950bc1a4df66c1c7965d4210d092f3dc (diff)
downloadpulseaudio-4be2625ef8cc3270827e522efadc1fb78439410d.tar.gz
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>
-rw-r--r--src/pulsecore/core-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index b37f7f8c..f2748aeb 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -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;