[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 06:07:21 UTC 2020


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

--- Comment #3 from Warner Losh <imp at FreeBSD.org> ---
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index b738dbc77b4..07346701857 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -2669,6 +2669,7 @@ static struct fileops mqueueops = {
        .fo_chown               = mqf_chown,
        .fo_sendfile            = invfo_sendfile,
        .fo_fill_kinfo          = mqf_fill_kinfo,
+       .fo_flags               = DFLAG_PASSABLE,
 };

 static struct vop_vector mqfs_vnodeops = {


may work better... It compiles, but I've not tested it.

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


More information about the freebsd-standards mailing list