[DGD] Persistance

Erwin Harte harte at xs4all.nl
Fri Dec 28 17:22:03 CET 2001


On Fri, Dec 28, 2001 at 09:45:09AM -0600, David Jackson wrote:
[...]
> 
> Here's my question - state dumps should be performed at intervals, in case of 
> crashes, and should also be performed when you manually shut down the MUD.  
> Is there a generic function for performing a state dump?

Yes it's called *drumroll* dump_state():

    NAME
	    dump_state - create a state dump

    SYNOPSIS
	    void dump_state()


    DESCRIPTION
	    Dump the current state of the system to file.  The actual dump is
            not performed until after the current thread has finished.

    SEE ALSO
	    kfun/swapout

Hope that helps,

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list