From owner-freebsd-current@FreeBSD.ORG Fri Sep 25 13:32:14 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5773106566B for ; Fri, 25 Sep 2009 13:32:14 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout3.freenet.de (mout3.freenet.de [IPv6:2001:748:100:40::2:5]) by mx1.freebsd.org (Postfix) with ESMTP id 520BC8FC1D for ; Fri, 25 Sep 2009 13:32:14 +0000 (UTC) Received: from [195.4.92.18] (helo=8.mx.freenet.de) by mout3.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #92) id 1MrAuD-00086V-8C; Fri, 25 Sep 2009 15:32:13 +0200 Received: from tce43.t.pppool.de ([89.55.206.67]:53992 helo=ernst.jennejohn.org) by 8.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1MrAuC-00035e-Uy; Fri, 25 Sep 2009 15:32:13 +0200 Date: Fri, 25 Sep 2009 15:32:12 +0200 From: Gary Jennejohn To: Rohit Grover Message-ID: <20090925153212.67247375@ernst.jennejohn.org> In-Reply-To: <426bed110909250623j44c25ba8o97ded8393f5297a9@mail.gmail.com> References: <426bed110909250623j44c25ba8o97ded8393f5297a9@mail.gmail.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: hald spins in a poll/read loop against /dev/usb with CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 13:32:14 -0000 On Fri, 25 Sep 2009 21:23:12 +0800 Rohit Grover wrote: > Hald spins endlessly on my CURRENT. I have the following from truss: > > open("/dev/usb",O_RDONLY,00) = 12 (0xc) > ... > ... > poll({4/POLLIN 8/POLLIN 10/POLLIN|POLLPRI 15/POLLIN 89/POLLIN 6/POLLIN > 9/POLLIN 88/POLLIN 7/POLLIN 12/POLLIN},10,161) = 1 (0x1) > gettimeofday({1253883730.961100 },0x0) = 0 (0x0) > read(12,0xbfbfe56c,384) = 0 (0x0) > gettimeofday({1253883730.961158 },0x0) = 0 (0x0) > poll({4/POLLIN 8/POLLIN 10/POLLIN|POLLPRI 15/POLLIN 89/POLLIN 6/POLLIN > 9/POLLIN 88/POLLIN 7/POLLIN 12/POLLIN},10,161) = 1 (0x1) > gettimeofday({1253883730.961228 },0x0) = 0 (0x0) > read(12,0xbfbfe56c,384) = 0 (0x0) > gettimeofday({1253883730.961286 },0x0) = 0 (0x0) > poll({4/POLLIN 8/POLLIN 10/POLLIN|POLLPRI 15/POLLIN 89/POLLIN 6/POLLIN > 9/POLLIN 88/POLLIN 7/POLLIN 12/POLLIN},10,161) = 1 (0x1) > gettimeofday({1253883730.961357 },0x0) = 0 (0x0) > read(12,0xbfbfe56c,384) = 0 (0x0) > gettimeofday({1253883730.961415 },0x0) = 0 (0x0) > ... > ... > > Why is /dev/usb responding to poll() when there is no data to be read? > > thanks. > /dev/usb is a directory on my 9-CURRENT machine, not a device file. Did you install hald recently, e.g. after updating you kernel? I'm pretty sure that hald depends on kernel sources and often requires a fresh installation. --- Gary Jennejohn