]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: use closefrom instead of close_range
authorMike Gilbert <floppym@gentoo.org>
Tue, 9 Dec 2025 04:46:17 +0000 (23:46 -0500)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Dec 2025 08:57:11 +0000 (09:57 +0100)
commita068cf08ad67447893b707cddfce31c9cafee643
tree4ad7a5deab383eb2145bbda902d5b49bcbc5a82d
parent70e413c5bb0caed24fce5674dfa39bf3df8724c2
ucm: use closefrom instead of close_range

closefrom is a library function with a fallback mechanism for when the
kernel does not support the close_range syscall.

Also check for the function properly instead of assuming it is available
with _GNU_SOURCE defined.

Closes: https://github.com/alsa-project/alsa-lib/pull/486
Fixes: https://github.com/alsa-project/alsa-lib/issues/485
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
configure.ac
src/ucm/ucm_exec.c