Date: Thu, 29 Dec 2005 13:59:03 -0000 From: "Steven Hartland" <killing@multiplay.co.uk> To: <freebsd-emulation@freebsd.org> Subject: linux MSG_NOSIGNAL broken in 6? Message-ID: <000e01c60c80$0c3d29c0$0100a8c0@multiplay.co.uk>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C60C80.06B17C40
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
Content-Transfer-Encoding: 7bit
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.
------=_NextPart_000_000B_01C60C80.06B17C40
Content-Type: application/octet-stream;
name="linux_socket.c.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="linux_socket.c.patch"
--- linux_socket.c.orig Thu Dec 29 14:45:19 2005=0A=
+++ linux_socket.c Thu Dec 29 14:46:00 2005=0A=
@@ -833,5 +833,5 @@=0A=
bsd_args.buf =3D (caddr_t)PTRIN(linux_args.msg);=0A=
bsd_args.len =3D linux_args.len;=0A=
- bsd_args.flags =3D linux_args.flags;=0A=
+ bsd_args.flags =3D linux_to_bsd_msg_flags(linux_args.flags);=0A=
bsd_args.to =3D NULL;=0A=
bsd_args.tolen =3D 0;=0A=
@@ -866,5 +866,5 @@=0A=
bsd_args.buf =3D (caddr_t)PTRIN(linux_args.msg);=0A=
bsd_args.len =3D linux_args.len;=0A=
- bsd_args.flags =3D linux_args.flags;=0A=
+ bsd_args.flags =3D linux_to_bsd_msg_flags(linux_args.flags);=0A=
bsd_args.from =3D NULL;=0A=
bsd_args.fromlenaddr =3D 0;=0A=
------=_NextPart_000_000B_01C60C80.06B17C40--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000e01c60c80$0c3d29c0$0100a8c0>
