VirtualBox

Changeset 1490 in vbox for trunk


Ignore:
Timestamp:
Mar 14, 2007 7:44:26 PM (18 years ago)
Author:
vboxsync
Message:

Flush the config file before closing it to try prevent data loss on panic/fault/whatever. TODO: flush the directory too.

File:
1 edited

Legend:

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

    r1441 r1490  
    26362636
    26372637        Utf8Str idStr = mData->mUuid.toString();
    2638 #ifdef __WIN__
     2638#ifdef __WIN__ /** @todo drop this once the RTProcCreate bug has been fixed */
    26392639        const char * args[] = {path, "-startvm", idStr, 0 };
    26402640#else
     
    66766676    if (isConfigLocked())
    66776677    {
     6678        RTFileFlush(mData->mHandleCfgFile);
    66786679        RTFileClose(mData->mHandleCfgFile);
     6680        /** @todo flush the directory. */
    66796681        mData->mHandleCfgFile = NIL_RTFILE;
    66806682    }
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