[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-emulation
Subject:    linux MSG_NOSIGNAL broken in 6?
From:       "Steven Hartland" <killing () multiplay ! co ! uk>
Date:       2005-12-29 13:59:03
Message-ID: 000e01c60c80$0c3d29c0$0100a8c0 () multiplay ! co ! uk
[Download RAW message or body]

If I follow the code correctly it looks like since revision 1.57
of linux_socket.c MSG_NOSIGNAL is broken for send as
it doesn't make use of linux_to_bsd_msg_flags to convert the
linux flags to bsd flags. If this is correct the attached patch
should fix it.

    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or \
entity to whom it is addressed. In the event of misdirection, the recipient is \
prohibited from using, copying, printing or otherwise disseminating it or any \
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone \
(023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.


["linux_socket.c.patch" (application/octet-stream)]

--- linux_socket.c.orig	Thu Dec 29 14:45:19 2005
+++ linux_socket.c	Thu Dec 29 14:46:00 2005
@@ -833,5 +833,5 @@
 	bsd_args.buf = (caddr_t)PTRIN(linux_args.msg);
 	bsd_args.len = linux_args.len;
-	bsd_args.flags = linux_args.flags;
+	bsd_args.flags = linux_to_bsd_msg_flags(linux_args.flags);
 	bsd_args.to = NULL;
 	bsd_args.tolen = 0;
@@ -866,5 +866,5 @@
 	bsd_args.buf = (caddr_t)PTRIN(linux_args.msg);
 	bsd_args.len = linux_args.len;
-	bsd_args.flags = linux_args.flags;
+	bsd_args.flags = linux_to_bsd_msg_flags(linux_args.flags);
 	bsd_args.from = NULL;
 	bsd_args.fromlenaddr = 0;


_______________________________________________
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic