From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 1 12:51:02 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A9A0106566C; Tue, 1 Feb 2011 12:51:02 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 480DA8FC20; Tue, 1 Feb 2011 12:51:02 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 74EFC1E000CA; Tue, 1 Feb 2011 13:51:01 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p11CoXTE012040; Tue, 1 Feb 2011 13:50:33 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p11CoWal012039; Tue, 1 Feb 2011 13:50:32 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 1 Feb 2011 13:50:32 +0100 To: Juergen Lock Message-ID: <20110201125032.GA11871@triton8.kn-bremen.de> References: <20110131212710.GA85739@triton8.kn-bremen.de> <201102010900.11121.hselasky@freebsd.org> <20110201110840.GA8591@triton8.kn-bremen.de> <201102011212.40488.hselasky@freebsd.org> <20110201123054.GA10962@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110201123054.GA10962@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, Hans Petter Selasky Subject: Re: New dvb-s2 tuner, and a hack to get remaining remotes working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 12:51:02 -0000 On Tue, Feb 01, 2011 at 01:30:54PM +0100, Juergen Lock wrote: > On Tue, Feb 01, 2011 at 12:12:40PM +0100, Hans Petter Selasky wrote: > > On Tuesday 01 February 2011 12:08:40 Juergen Lock wrote: > > > F_SETFL > > > > Try to change FIONBIO with F_SETFL in the patch. > > Turns out FIONBIO was correct but I had to allow for FIOASYNC too: >[...] > That allowed the ioctl to complete and irrecord to wait for the > first button press, but then select() seems to misbehave: (I get an > endless loop of "Really read -1 bytes from '/dev/lirc0', expected 3" > until I hit ^c.) > > [...] > 10950 irrecord CALL select(0x5,0x7fffffffe5d0,0,0,0x7fffffffe650) > 10950 irrecord RET select 1 > 10950 irrecord CALL read(0x4,0x7fffffffe660,0x3) > 10950 irrecord RET read -1 errno 22 Invalid argument Actually probably not select() but the read() itself, if it would be select()'s fault alone the read() would more likely return EAGAIN instead of EINVAL... Juergen