VirtualBox

Changeset 1675 in vbox


Ignore:
Timestamp:
Mar 23, 2007 1:19:49 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19811
Message:

Disconnect client after detecting a broken pipe

File:
1 edited

Legend:

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

    r1674 r1675  
    148148        if (VBOX_FAILURE(rc))
    149149        {
    150             Log(("drvNamedPipeRead: RTFileRead returned Vrc\n", rc));
     150            Log(("drvNamedPipeRead: RTFileRead returned %Vrc\n", rc));
    151151            if (    rc == VERR_EOF
    152152                ||  rc == VERR_BROKEN_PIPE)
     
    154154                RTFILE tmp = pData->NamedPipe;
    155155                FlushFileBuffers((HANDLE)tmp);
     156                DisconnectNamedPipe((HANDLE)tmp);
    156157                if (!pData->fIsServer)
    157158                {
    158159                    pData->NamedPipe = NIL_RTFILE;
    159                     DisconnectNamedPipe((HANDLE)tmp);
    160160                    RTFileClose(tmp);
    161161                }
     
    242242                RTFILE tmp = pData->NamedPipe;
    243243                FlushFileBuffers((HANDLE)tmp);
     244                DisconnectNamedPipe((HANDLE)tmp);
    244245                if (!pData->fIsServer)
    245246                {
    246247                    pData->NamedPipe = NIL_RTFILE;
    247                     DisconnectNamedPipe((HANDLE)tmp);
    248248                    RTFileClose(tmp);
    249249                }
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