Date: Tue, 1 Feb 2011 13:50:32 +0100 From: Juergen Lock <nox@jelal.kn-bremen.de> To: Juergen Lock <nox@jelal.kn-bremen.de> Cc: freebsd-multimedia@freebsd.org, Hans Petter Selasky <hselasky@freebsd.org> Subject: Re: New dvb-s2 tuner, and a hack to get remaining remotes working Message-ID: <20110201125032.GA11871@triton8.kn-bremen.de> In-Reply-To: <20110201123054.GA10962@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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110201125032.GA11871>