Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-02 Thread Andrey Borzenkov
On Monday 02 May 2005 16:18, Andrey Borzenkov wrote: > On Monday 02 May 2005 13:30, Andrew Morton wrote: > > Andrey Borzenkov <[EMAIL PROTECTED]> wrote: > > > > It's pretty simple to convert khubd to use the kthread API. > > > > Something like this (untested): > > > > > > Something strange is g

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-02 Thread Andrey Borzenkov
On Monday 02 May 2005 13:30, Andrew Morton wrote: > Andrey Borzenkov <[EMAIL PROTECTED]> wrote: > > > It's pretty simple to convert khubd to use the kthread API. Something > > > like this (untested): > > > > Something strange is going on with this patch. > > > > insmod usbcore; insmod uhci-hcd

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-02 Thread Andrew Morton
Andrey Borzenkov <[EMAIL PROTECTED]> wrote: > > > It's pretty simple to convert khubd to use the kthread API. Something like > > this (untested): > > > > > Something strange is going on with this patch. > > insmod usbcore; insmod uhci-hcd works as expected, finds out all devices, > trigg

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-02 Thread Andrey Borzenkov
On Monday 02 May 2005 02:30, Andrew Morton wrote: > Alan Stern <[EMAIL PROTECTED]> wrote: > > On Sun, 1 May 2005, Andrey Borzenkov wrote: > > > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a > > > number of distributions switching init levels implicitly does "killall > > > -9",

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Nish Aravamudan
On 5/1/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > Nish Aravamudan <[EMAIL PROTECTED]> wrote: > > > > > - /* Send me a signal to get me die (for debugging) */ > > > do { > > > hub_events(); > > > - wait_event_interruptible(khubd_wait, > > > !list_empt

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Dmitry Torokhov
On Sunday 01 May 2005 17:46, Nish Aravamudan wrote: > On 5/1/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > Alan Stern <[EMAIL PROTECTED]> wrote: > > > > > > On Sun, 1 May 2005, Andrey Borzenkov wrote: > > > > > > > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a > > > > numbe

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Andrew Morton
Nish Aravamudan <[EMAIL PROTECTED]> wrote: > > > - /* Send me a signal to get me die (for debugging) */ > > do { > > hub_events(); > > - wait_event_interruptible(khubd_wait, > > !list_empty(&hub_event_list)); > > + wait_event_interruptible(

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Nish Aravamudan
On 5/1/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > Alan Stern <[EMAIL PROTECTED]> wrote: > > > > On Sun, 1 May 2005, Andrey Borzenkov wrote: > > > > > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a number > > > of > > > distributions switching init levels implicitly does "ki

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Andrew Morton
Alan Stern <[EMAIL PROTECTED]> wrote: > > On Sun, 1 May 2005, Andrey Borzenkov wrote: > > > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a number > > of > > distributions switching init levels implicitly does "killall -9", killing > > khubd. The only way to restart it is to

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Lee Revell
On Sun, 2005-05-01 at 17:01 -0400, Alan Stern wrote: > On Sun, 1 May 2005, Andrey Borzenkov wrote: > > > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a number > > of > > distributions switching init levels implicitly does "killall -9", killing > > khubd. The only way to rest

Re: [linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Alan Stern
On Sun, 1 May 2005, Andrey Borzenkov wrote: > Hub driver is using SIGKILL to terminate khubd. Unfortunately on a number of > distributions switching init levels implicitly does "killall -9", killing > khubd. The only way to restart it is to reload USB subsystem. > > Is signal usage in this case

[linux-usb-devel] init 1 kill khubd on 2.6.11

2005-05-01 Thread Andrey Borzenkov
Hub driver is using SIGKILL to terminate khubd. Unfortunately on a number of distributions switching init levels implicitly does "killall -9", killing khubd. The only way to restart it is to reload USB subsystem. Is signal usage in this case really needed? What about replacing it with simple fl