VirtualBox

Changeset 16217 in vbox


Ignore:
Timestamp:
Jan 26, 2009 10:03:46 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42007
Message:

Devices/Serial: Data unavaiable while reading shouldn't terminate thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r15836 r16217  
    758758            if (RT_FAILURE(rc))
    759759            {
    760                 LogRel(("HostSerial#%d: Read failed with %Rrc, terminating the worker thread.\n", pDrvIns->iInstance, rc));
     760                LogRel(("HostSerial#%d: (1) Read failed with %Rrc, terminating the worker thread.\n", pDrvIns->iInstance, rc));
    761761                rcThread = rc;
    762762                break;
     
    796796            if (RT_FAILURE(rc))
    797797            {
    798                 LogRel(("HostSerial#%d: Read failed with %Rrc, terminating the worker thread.\n", pDrvIns->iInstance, rc));
     798                /* don't terminate worker thread when data unavailable */
     799                if (rc == VERR_TRY_AGAIN)
     800                    continue;
     801
     802                LogRel(("HostSerial#%d: (2) Read failed with %Rrc, terminating the worker thread.\n", pDrvIns->iInstance, rc));
    799803                rcThread = rc;
    800804                break;
Note: See TracChangeset for help on using the changeset viewer.

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