Date: Mon, 11 May 2009 10:31:03 +0200 From: Thomas Mueller <tmueller@sysgo.com> To: Chagin Dmitry <dchagin@freebsd.org> Cc: freebsd-emulation@freebsd.org Subject: Re: kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts Message-ID: <20090511103103.24c32802@tom.ulm.sysgo.com> In-Reply-To: <20090511092045.4e18692c@tom.ulm.sysgo.com> References: <200905090700.n49704gb019256@freefall.freebsd.org> <20090509080609.GA4415@dchagin.static.corbina.ru> <20090511092045.4e18692c@tom.ulm.sysgo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 May 2009 09:20:45 +0200, Thomas Mueller wrote: > On Sat, 9 May 2009 12:06:09 +0400, Chagin Dmitry wrote: > > > > Please, apply this two patches. > > > > http://people.freebsd.org/~dchagin/patches/commit-4952ce8.patch > > In linux_setsockopt() when calling kern_setsockopt() for > SO_RCVTIMEO/SO_SNDTIMEO you need to pass 'name' instead of > 'bsd_args.name' since the latter is still undefined at that point: > > --- commit-4952ce8.patch.orig 2009-05-11 09:07:56.000000000 +0200 > +++ commit-4952ce8.patch 2009-05-11 09:08:09.000000000 +0200 > @@ -39,7 +39,7 @@ > + tv.tv_sec = linux_tv.tv_sec; > + tv.tv_usec = linux_tv.tv_usec; > + return (kern_setsockopt(td, bsd_args.s, bsd_args.level, > -+ bsd_args.name, &tv, UIO_SYSSPACE, sizeof(tv))); > ++ name, &tv, UIO_SYSSPACE, sizeof(tv))); > + break; > + default: > + break; > > > http://people.freebsd.org/~dchagin/patches/commit-6355ebf.patch With the above shown modification I was able to successfully run the LM-X License Manager on 7.2-STABLE with both amd64 and i386. -- Thomas Mueller
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090511103103.24c32802>