[Bug 243103] fork fails to clone open message queue handles into the child process (in violation of POSIX std.)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 5 05:28:14 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243103

Warner Losh <imp at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |imp at FreeBSD.org

--- Comment #1 from Warner Losh <imp at FreeBSD.org> ---
Try

diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index b738dbc77b4..913f03e12d5 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -229,7 +229,7 @@ static uma_zone_t           mqueue_zone;
 static uma_zone_t              mvdata_zone;
 static uma_zone_t              mqnoti_zone;
 static struct vop_vector       mqfs_vnodeops;
-static struct fileops          mqueueops;
+static struct fileops          mqueueops = {.fo_flags = DFLAG_PASSABLE};
 static unsigned                        mqfs_osd_jail_slot;

 /*

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list