VirtualBox

Changeset 1758 in vbox


Ignore:
Timestamp:
Mar 28, 2007 10:10:33 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19926
Message:

Another attempt at proper shutdown.

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

Legend:

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

    r1754 r1758  
    180180                else
    181181                {
    182                     Log(("Write failed with %Vrc; skipping\n", rc));
     182                    LogFlow(("Write failed with %Vrc; skipping\n", rc));
    183183                    break;
    184184                }
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r1756 r1758  
    147147        {
    148148            Log(("drvNamedPipeRead: RTFileRead returned %Vrc\n", rc));
    149             if (    rc == VERR_EOF
    150                 ||  rc == VERR_BROKEN_PIPE)
     149            if (    !pData->fShutdown
     150                &&  (   rc == VERR_EOF
     151                        ||  rc == VERR_BROKEN_PIPE
     152                    )
     153               )
     154
    151155            {
    152156                RTFILE tmp = pData->NamedPipe;
     
    539543    PDRVNAMEDPIPE pData = PDMINS2DATA(pDrvIns, PDRVNAMEDPIPE);
    540544    LogFlow(("%s: %s\n", __FUNCTION__, pData->pszLocation));
     545
     546    pData->fShutdown = true;
    541547
    542548#ifdef __WIN__
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