Re: [PATCH] Linux joydev joystick disconnect patch 2.6.11-rc2

From: David Fries
Date: Tue Feb 08 2005 - 10:31:59 EST


On Mon, Feb 07, 2005 at 01:20:33PM +0100, Vojtech Pavlik wrote:
> On Sun, Feb 06, 2005 at 08:21:13PM -0500, Dmitry Torokhov wrote:
>
> This should do it:
>
> ChangeSet@xxxxxx, 2005-02-07 13:19:59+01:00, vojtech@xxxxxxx
> input: Do a kill_fasync() in input handlers on device disconnect
> to notify a client using poll() that the device is gone.
>
> Signed-off-by: Vojtech Pavlik <vojtech@xxxxxxx>
...
>
> --
> Vojtech Pavlik
> SuSE Labs, SuSE CR

I just checked it against my joystick_select test program which I
included in an earlier e-mail and the blocking read, poll, and select
return when I unplug the joystick. Thanks for fixing the other
drivers, I didn't think of looking at them.

--
David Fries <dfries@xxxxxxxxxxxx>
http://fries.net/~david/pgpkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/