git: 734d3806b5ef - stable/15 - libthr: fix __thr_pshared_offpage() to not use cancellable close()

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 17 Nov 2026 01:09:37 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=734d3806b5efcf82eadc4db4124d73d84d428550

commit 734d3806b5efcf82eadc4db4124d73d84d428550
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-11-09 17:10:45 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-17 00:24:58 +0000

    libthr: fix __thr_pshared_offpage() to not use cancellable close()
    
    (cherry picked from commit e55d4398708623522ce773e0cd118180e2ee17fe)
---
 lib/libthr/thread/thr_pshared.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libthr/thread/thr_pshared.c b/lib/libthr/thread/thr_pshared.c
index 698cc5e6adc7..75e064c9fc33 100644
--- a/lib/libthr/thread/thr_pshared.c
+++ b/lib/libthr/thread/thr_pshared.c
@@ -263,7 +263,7 @@ __thr_pshared_offpage(void *key, int doalloc)
 	if (fd == -1)
 		return (NULL);
 	res = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
-	close(fd);
+	__sys_close(fd);
 	if (res == MAP_FAILED)
 		return (NULL);
 	pshared_wlock(curthread);