Changeset 2105

Show
Ignore:
Timestamp:
13/03/2008 21:30:12 (10 months ago)
Author:
chris
Message:

Ignore ERR_NO_DATA while writing to control socket on Windows, as it
just means that the Pope is being closed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/WinNamedPipeStream.cpp

    r1877 r2105  
    441441                if (!Success) 
    442442                { 
    443                         DWORD err = GetLastError(); 
    444                         BOX_ERROR("Failed to write to control socket: " << 
    445                                 GetErrorMessage(err)); 
    446                         Close(); 
    447  
    448443                        // ERROR_NO_DATA is a strange name for  
    449444                        // "The pipe is being closed". No exception wanted. 
     445 
     446                        DWORD err = GetLastError(); 
     447 
     448                        if (err != ERROR_NO_DATA) 
     449                        { 
     450                                BOX_ERROR("Failed to write to control " 
     451                                        socket: " << GetErrorMessage(err)); 
     452                        } 
     453 
     454                        Close(); 
    450455 
    451456                        if (err == ERROR_NO_DATA)