VirtualBox

Changeset 1663 in vbox


Ignore:
Timestamp:
Mar 23, 2007 10:50:02 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19796
Message:

Some shutdown fixes. (not well done)

Location:
trunk/src/VBox/Devices/Serial
Files:
2 edited

Legend:

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

    r1646 r1663  
    163163                cbRemaining = sizeof(aBuffer);
    164164                rc = pData->pDrvStream->pfnRead(pData->pDrvStream, aBuffer, &cbRemaining);
     165                if (rc == VERR_BROKEN_PIPE)
     166                    return VINF_SUCCESS;        /* abort; typically happens when shutting down. */
     167
    165168                AssertRC(rc);
    166169            }
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r1662 r1663  
    310310static DECLCALLBACK(int) drvNamedPipeListenLoop(RTTHREAD ThreadSelf, void *pvUser)
    311311{
    312     PDRVNAMEDPIPE pData = (PDRVNAMEDPIPE)pvUser;
    313     int rc = VINF_SUCCESS;
     312    PDRVNAMEDPIPE   pData = (PDRVNAMEDPIPE)pvUser;
     313    int             rc = VINF_SUCCESS;
     314    RTFILE          NamedPipe = pData->NamedPipe;
    314315
    315316    while (RT_LIKELY(!pData->fShutdown))
    316317    {
    317318#ifdef __WIN__
    318         BOOL fConnected = ConnectNamedPipe((HANDLE)pData->NamedPipe, NULL);
     319        BOOL fConnected = ConnectNamedPipe((HANDLE)NamedPipe, NULL);
    319320        if (!fConnected)
    320321        {
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