VirtualBox

Changeset 75598 in vbox for trunk/src/VBox/Devices/USB/usbip


Ignore:
Timestamp:
Nov 19, 2018 8:16:07 PM (6 years ago)
Author:
vboxsync
Message:

USBProxyDevice-usbip.cpp: Don't remove/readd the wakeup pipe from the pollset when not bothering with the wakeup pipe but just change the flags. This avoids a hang during power off because the read event is lost.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/usbip/USBProxyDevice-usbip.cpp

    r75583 r75598  
    12771277    if (!fPollWakePipe)
    12781278    {
    1279         rc = RTPollSetRemove(pProxyDevUsbIp->hPollSet, USBIP_POLL_ID_PIPE);
     1279        rc = RTPollSetEventsChange(pProxyDevUsbIp->hPollSet, USBIP_POLL_ID_PIPE, RTPOLL_EVT_ERROR);
    12801280        AssertRC(rc);
    12811281    }
     
    13291329    if (!fPollWakePipe)
    13301330    {
    1331         rc = RTPollSetAddPipe(pProxyDevUsbIp->hPollSet, pProxyDevUsbIp->hPipeR,
    1332                               RTPOLL_EVT_READ, USBIP_POLL_ID_PIPE);
     1331        rc = RTPollSetEventsChange(pProxyDevUsbIp->hPollSet, USBIP_POLL_ID_PIPE, RTPOLL_EVT_READ);
    13331332        AssertRC(rc);
    13341333    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette