[Bf-committers] Save session recovery on SIGSEGV
joeedh
joeeagar at prodigy.net
Wed Feb 23 21:54:49 CET 2005
Hi. I've made a patch where BKE_undo_save_quit (the session recovery
saving function) is called whenever a segmentation fault occurs.
I don't know if this is a good idea, if it'll work cross platforms, or
whatever, but anyway heres a patch.
joeedh
-------------- next part --------------
Index: source/creator/creator.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/creator/creator.c,v
retrieving revision 1.45
diff -r1.45 creator.c
136a137,143
> /*save file on error*/
> static void segv_handler(int sig)
> {
> printf("Error! Must quite, but saving session recovery file!\n");
> BKE_undo_save_quit();
> exit(-1);
> }
146a154
> BKE_undo_save_quit();
More information about the Bf-committers
mailing list