[lkml]   [2003]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: Problems with USB


yes it look that this patch can work. But who send that signal. I
tried to hack kernel to print signal number and it looks, that khubd gets

Petr Titera

Greg KH
< To:
m> cc:
Fax to:
13.01.2003 Subject: Re: Problems with USB

On Sun, Jan 12, 2003 at 09:44:42PM +0100, wrote:
> Hello all,
> I have problems with USB in recent kernels (tested on 2.5.56) and
> RedHat 8.0. Right after end of script '/etc/rc.d/rc.sysinit' and before
> script '/etc/rc.d/rc' which runs after USB daemon khubd gets some signal
> and ends. From this point USB does not work as as system does not get any
> plug events. If I disable USB at startup and load modules later,
> works.

Can you try this patch that I just added to the USB tree? It seems to
work for me.


greg k-h

# USB: Fix from Jeff and Pete to keep khubd from being able to be killed
# by a signal

diff -Nru a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
--- a/drivers/usb/core/hub.c Sun Jan 12 22:03:13 2003
+++ b/drivers/usb/core/hub.c Sun Jan 12 22:03:13 2003
@@ -1085,6 +1085,12 @@


+ /* keep others from killing us */
+ spin_lock_irq(&current->sig->siglock);
+ sigemptyset(&current->blocked);
+ recalc_sigpending();
+ spin_unlock_irq(&current->sig->siglock);
/* Setup a nice name */
strcpy(current->comm, "khubd");

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.027 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site