<br><div><span class="gmail_quote">On 10/8/07, <b class="gmail_sendername">Ulf Wiger</b> <<a href="mailto:ulf@wiger.net">ulf@wiger.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> You can't save the actual process, but you can pretty easily save the<br>> state data of the process. The thing to keep in mind is that PIDs will<br>> change, since it's actually a brand new process after revival.
<br><br>> If your process is a gen_server, the thing that needs saving could<br>> be the whole state variable; for a gen_fsm, it might be the {State, Data}<br>> tuple. You may want to write pack()/unpack() functions that compress
<br>> the state somewhat, e.g. removing things that aren't needed for<br>> restoring the process later.</blockquote><div><br>Thanks.<br><br>Where can I find the definition of the State variable to figure out what's needed and not needed?
<br><br>Thanks,<br>yc<br><br><br></div></div>