From owner-freebsd-emulation@FreeBSD.ORG Fri May 8 20:20:03 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BAEC106564A for ; Fri, 8 May 2009 20:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA838FC0C for ; Fri, 8 May 2009 20:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n48KK3pG037608 for ; Fri, 8 May 2009 20:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n48KK3Vn037607; Fri, 8 May 2009 20:20:03 GMT (envelope-from gnats) Date: Fri, 8 May 2009 20:20:03 GMT Message-Id: <200905082020.n48KK3Vn037607@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Chagin Dmitry Cc: Subject: Re: kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chagin Dmitry List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 20:20:03 -0000 The following reply was made to PR kern/134276; it has been noted by GNATS. From: Chagin Dmitry To: Thomas Mueller Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts Date: Sat, 9 May 2009 00:10:03 +0400 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 06, 2009 at 04:57:50PM +0000, Thomas Mueller wrote: >=20 > >Number: 134276 > >Category: kern > >Synopsis: [linux][patch] MSG_NOSIGNAL not translated for recv(), s= ocket timeout incorrect for 64-bit hosts > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Quarter: =20 > >Keywords: =20 > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Wed May 06 17:00:07 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Thomas Mueller > >Release: 7.2-STABLE > >Organization: > >Environment: > FreeBSD tom.ulm.sysgo.com 7.2-STABLE FreeBSD 7.2-STABLE #16: Mon May 4 1= 5:12:43 CEST 2009 toor@tom.ulm.sysgo.com:/usr/obj/usr/src/sys/TOM amd64 > >Description: > I've encountered two socket related problems with the Linux emulation: >=20 > 1. A Linux application passing the MSG_NOSIGNAL flag in calls to=20 > recv() or recvfrom() will still receive a SIGPIPE if the condition > for sending the signal is met. >=20 > 2. An attempt to set socket timeouts with a call to setsocktopt() using t= he=20 > SO_RECVTIMEO or SO_SNDTIMEO option will fail with [EINVAL] on amd64. >=20 What the Linux application you have mentioned? I should know it to test patches. Thank you. --=20 Have fun! chd --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkoEkZoACgkQ0t2Tb3OO/O05SwCfaVw+4LflVkXIDk9CIM4I32Fh 7bMAnRg/VWcAMRQGEnTD9L+W6RuJkf4Q =md+G -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--