Subject: Re: Saving the state of the program ?
Date: Mon, 22 Nov 1999 08:45:18 -0500
From: Dave Mason <dmason@sarg.Ryerson.CA>
>>>>> On Sun, 21 Nov 1999 14:47:56 +0100 (MET), Benoit de Boursetty <firstname.lastname@example.org> said:
> On Fri, 19 Nov 1999, Dave Mason wrote:
>> > Hi, Does anyone know how to core-dump a running program, reboot,
>> > and then restart the program from where it was ?
>> Emacs does that. Basically they do a core dump and then have a
>> (somewhat system dependent) unexec routine that turns the core file
>> into an executable.
>> The scm scheme system uses this, too. That's probably the best
>> place to look.
> Thanks for the info. However, my question was about executables in
> the general case...
That's what I was trying to point you to. In scm you can say something like:
(if (dump "new-executable")
(display "\"new-executable\" successfully made\n")
...rest of the program...
It wouldn't be too hard to pull the code out of scm and add it to the
ocaml library. But it would rewuire some C coding experience.
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:28 MET