VirtualBox

Changeset 17600 in vbox for trunk


Ignore:
Timestamp:
Mar 10, 2009 8:58:20 AM (16 years ago)
Author:
vboxsync
Message:

Main: Reset mIPCSem when releasing IPC semaphore to avoid a rare assertion when reusing the session object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SessionImpl.cpp

    r17180 r17600  
    10051005        ::WaitForSingleObject (mIPCThreadSem, INFINITE);
    10061006        ::CloseHandle (mIPCThreadSem);
     1007
     1008        mIPCThreadSem = NULL;
     1009        mIPCSem = NULL;
    10071010    }
    10081011
     
    10361039        ::sembuf sop = { 0, 1, SEM_UNDO };
    10371040        ::semop (mIPCSem, &sop, 1);
     1041
     1042        mIPCSem = -1;
    10381043    }
    10391044
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