I can do it. This issue affects other projects I'm interested in,
too.
There should really be a clean way to prevent quit() from terminating
the whole process if Octave is embedded. It never occured to me
before
:)
I committed the following patch:
http://hg.savannah.gnu.org/hgweb/octave/rev/ee7cf4d963f3
summary:
quit() now raises an octave_quit_exception, carrying the exit status.
this is handled in main_loop and a couple of other functions.
octave_exit pointer is declared and points to ::exit at startup. it
may be overriden by user code or even NULL.
also, main_loop et al. now perform unwind_protect_cleanup actions when
quit() is called. It seems reasonable to do so - anyone disagrees?
cheers