Vojtech Pavlik <[EMAIL PROTECTED]> writes:
> Hi!
>
> This is a problem with RedHat kernels. Normal 2.2 kernels don't pass this
> parameter to kill_fasync, and that's why the parameter is removed. Patch
> a clean 2.2.14 instead.
here is the trivial patch :
--- linux/drivers/usb/evdev.c.chmou Wed Mar 8 16:26:21 2000
+++ linux/drivers/usb/evdev.c Wed Mar 8 16:36:47 2000
@@ -74,7 +74,7 @@
list->head = (list->head + 1) & (EVDEV_BUFFER_SIZE - 1);
if (list->fasync)
- kill_fasync(list->fasync, SIGIO);
+ kill_fasync(list->fasync, SIGIO, POLL_HUP);
list = list->next;
}
--- linux/drivers/usb/joydev.c.chmou Wed Mar 8 16:26:21 2000
+++ linux/drivers/usb/joydev.c Wed Mar 8 16:37:06 2000
@@ -138,7 +138,7 @@
list->startup = 0;
if (list->fasync)
- kill_fasync(list->fasync, SIGIO);
+ kill_fasync(list->fasync, SIGIO, POLL_HUP);
list = list->next;
}
--- linux/drivers/usb/mousedev.c.chmou Wed Mar 8 16:26:21 2000
+++ linux/drivers/usb/mousedev.c Wed Mar 8 16:37:25 2000
@@ -140,7 +140,7 @@
list->ready = 1;
if (list->fasync)
- kill_fasync(list->fasync, SIGIO);
+ kill_fasync(list->fasync, SIGIO, POLL_HUP);
list = list->next;
}
@@ -289,7 +289,7 @@
}
if (list->fasync)
- kill_fasync(list->fasync, SIGIO);
+ kill_fasync(list->fasync, SIGIO, POLL_HUP);
wake_up_interruptible(&list->mousedev->wait);
> On Thu, Apr 27, 2000 at 01:14:16AM -0400, Ian Blenke wrote:
> > Unfortunately, it seems that calls to kill_fasync() in evdev.c, joydev.c,
> > and mousedev.c are missing the parameter for "band" (POLL_IN, POLL_OUT,
> > POLL_MSG). I'm guessing that something was lost in the backport.
> >
> > More info as I get things to build a bit further..
> >
> > - Ian C. Blenke <[EMAIL PROTECTED]>
> >
> > -----Original Message-----
> > From: Vojtech Pavlik [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 26, 2000 4:00 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: [linux-usb] USB Backport Updated to pre6-7
> >
> >
> > Hi!
> >
> > I've finally updated the backport. Sorry it took so long. If you find
> > any bugs (introduced by the backport), report them to me.
> >
> > --
> > Vojtech Pavlik
> > SuSE Labs
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
--
MandrakeSoft Inc http://www.mandrakesoft.com
San-Diego, CA USA. --Chmouel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]