git: a401023a0263 - stable/15 - linux: preserve epoll descriptors across fork using KQUEUE_CPONFORK

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 23 Oct 2026 01:04:18 UTC
The branch stable/15 has been updated by kib:

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

commit a401023a0263ca0681429ac614a162ca0dd36e08
Author:     Vladimir Grebenshchikov <vova@zote.me>
AuthorDate: 2026-10-12 18:40:23 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-23 00:24:20 +0000

    linux: preserve epoll descriptors across fork using KQUEUE_CPONFORK
    
    (cherry picked from commit b3836322a1e6863734427ac9c01381ab25458126)
---
 sys/compat/linux/linux_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c
index de313aefff97..507ddf1cde6f 100644
--- a/sys/compat/linux/linux_event.c
+++ b/sys/compat/linux/linux_event.c
@@ -104,7 +104,7 @@ static int
 epoll_create_common(struct thread *td, int flags)
 {
 
-	return (kern_kqueue(td, flags, false, NULL));
+	return (kern_kqueue(td, flags, true, NULL));
 }
 
 #ifdef LINUX_LEGACY_SYSCALLS