git: 2bb4a430f025 - main - audio/pulseaudio: do not close any filedescriptor below stderr
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Dec 2024 15:05:52 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2bb4a430f025ede5c90c3f2a89bac54c25b989be
commit 2bb4a430f025ede5c90c3f2a89bac54c25b989be
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-12-23 15:02:28 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-12-23 15:05:35 +0000
audio/pulseaudio: do not close any filedescriptor below stderr
PR: 283386
Tested by: arrowd
---
audio/pulseaudio/Makefile | 2 +-
audio/pulseaudio/files/patch-src_pulsecore_core-util.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index d348e5b965b6..3b119b57b463 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -4,7 +4,7 @@
PORTNAME= pulseaudio
DISTVERSION= 17.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= https://freedesktop.org/software/pulseaudio/releases/
diff --git a/audio/pulseaudio/files/patch-src_pulsecore_core-util.c b/audio/pulseaudio/files/patch-src_pulsecore_core-util.c
index 77becf674591..b6736ad539a8 100644
--- a/audio/pulseaudio/files/patch-src_pulsecore_core-util.c
+++ b/audio/pulseaudio/files/patch-src_pulsecore_core-util.c
@@ -11,7 +11,7 @@
+ if (except_fds[i] > maxfd)
+ maxfd = except_fds[i];
+ maxfd++;
-+ closefrom(maxfd);
++ closefrom(MAX(maxfd, STDERR_FILENO + 1));
+#else
if (getrlimit(RLIMIT_NOFILE, &rl) >= 0)
maxfd = (int) rl.rlim_max;