usb-proxy
usb-proxy copied to clipboard
reset device may trigger hotplug thread and the process will be killed
Based on the discussion, we may need to implement a mechanism to prevent the hotplug thread kill the process if the Host send reset
request
These might not be the best solution, but what I have in my mind now are
- Stop the hotplug thread before reset, and try to restart the hotplug thread after reset
- Add a flag like this commit to let user decide whether the hotplug thread should be created or not, which will be default yes.