VirtualBox

Changeset 29954 in vbox for trunk/src


Ignore:
Timestamp:
Jun 1, 2010 3:06:02 PM (15 years ago)
Author:
vboxsync
Message:

SSM: The I/O thread must wake up the master thread when quitting on error or it'll get stuck when the connection breaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/SSM.cpp

    r29250 r29954  
    28362836            }
    28372837        }
     2838
     2839        if (!ASMAtomicReadBool(&pStrm->fTerminating))
     2840            RTSemEventSignal(pStrm->hEvtFree);
    28382841    }
    28392842    else
     
    28632866            }
    28642867        }
     2868
     2869        if (!ASMAtomicReadBool(&pStrm->fTerminating))
     2870            RTSemEventSignal(pStrm->hEvtHead);
    28652871    }
    28662872
     
    54165422        return rc;
    54175423
    5418     if (pSSM->enmAfter != SSMAFTER_DEBUG_IT)
    5419         AssertMsgFailed(("SSM: attempted reading more than the unit!\n"));
    5420     return VERR_SSM_LOADED_TOO_MUCH;
     5424    if (pSSM->enmAfter != SSMAFTER_DEBUG_IT && rc == VERR_EOF)
     5425        AssertMsgFailedReturn(("SSM: attempted reading more than the unit! rc=%Rrc\n", rc), VERR_SSM_LOADED_TOO_MUCH);
     5426    return VERR_SSM_STREAM_ERROR;
    54215427}
    54225428
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