From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 29 21:18:10 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D70D16A5A9 for ; Wed, 29 Nov 2006 21:18:10 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5723E43CD9 for ; Wed, 29 Nov 2006 21:16:51 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id kATLGodk068362; Wed, 29 Nov 2006 16:16:50 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: John E Hein Date: Wed, 29 Nov 2006 16:16:31 -0500 User-Agent: KMail/1.6.2 References: <20061106174033.GA70360@stud.fit.vutbr.cz> <200611071201.11899.jkim@FreeBSD.org> <17773.62597.411535.477324@gromit.timing.com> In-Reply-To: <17773.62597.411535.477324@gromit.timing.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200611291616.33903.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2259/Wed Nov 29 14:28:42 2006 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org Subject: Re: [PATCH]: possible fix for the fifoor problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 21:18:10 -0000 On Wednesday 29 November 2006 03:58 pm, John E Hein wrote: > Jung-uk Kim wrote at 12:01 -0500 on Nov 7, 2006: > > Try the attached patch instead. > > > > Jung-uk Kim > > --- src/sys/compat/linux/linux_stats.c.orig Sun Oct 22 07:52:11 > > 2006 +++ src/sys/compat/linux/linux_stats.c Tue Nov 7 11:59:21 > > 2006 @@ -130,7 +130,7 @@ > > int temp; > > > > temp = td->td_retval[0]; > > - if (kern_open(td, path, UIO_SYSSPACE, O_RDONLY, 0) != 0) > > + if (kern_open(td, path, UIO_SYSSPACE, O_RDONLY | O_NONBLOCK, > > 0) != 0) return; > > fd = td->td_retval[0]; > > td->td_retval[0] = temp; > > I don't know if there's been progress made here that I didn't > notice, but even with this patch, I can get linux_seamonkey to hang > in fifoor (like when I click on an URL to a PDF and try to 'Save it > to disk'). This is fixed differently in P4: http://perforce.freebsd.org/changeView.cgi?CH=109652 You can download the latest linux_stats.c directly from P4 web page: http://perforce.freebsd.org/fileDownLoad.cgi?FSPC=//depot/projects/linuxolator/src/sys/compat/linux/linux%5fstats.c&REV=5 Good luck, Jung-uk Kim