retitle 677143 nut-server: usbhid-ups immediately exits if no ups is present.
severity 677143 normal
thanks

Hi (again),

Ok I think I've found the problem.

For some reason the kernel is taking upto 10sec to actually settle the
UPS connection. This is too long and this make usbhid-ups fails to
start as the device is not present in /dev/bus/usb/.

I see two problem here:

1) the kernel one (I've already sent a mail to the linux-usb ML[0])

2) the fact that usbhid-ups exits when no UPS is connected. If
usbhid-ups is successfully started and the UPS is disconnected it will
keep waiting until the ups is reconnected. Shouldn't it also wait if
there is initially no device connected?

Cheers

Laurent Bigonville

PS: I also have the feeling that usbhid-ups is leaking file descriptor
if the usb device under /dev/bus/usb/ disappears. lsof is showing be
"/dev/bus/usb/00x/00x (deleted)" every time I disconnect a device.

[0] http://article.gmane.org/gmane.linux.usb.general/69293


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to