[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49304] On SIGTERM, 'octave-workspace' is save
From: |
Olaf Till |
Subject: |
[Octave-bug-tracker] [bug #49304] On SIGTERM, 'octave-workspace' is saved, but Octave returns to prompt rather than terminating |
Date: |
Mon, 16 Jan 2017 11:05:50 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #3, bug #49304 (project octave):
What goes on is that the signal handler, after dumping core, calls
clean_up_and_exit(), which in turn throws octave::exit_exception. But in
parser::run, this exception is caught by the default catch block, which calls
error() (the latter probably being the reason for returning to the prompt).
Of course I can't anticipate the planned design changes, but I think handling
the newly introduced exit_exception as a special case has just been forgotten
for the moment ...? So I suggest the patch in the attached changeset, which
does the trick for me.
(file #39489)
_______________________________________________________
Additional Item Attachment:
File name: rethrow-exit_exception.cset Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49304>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49304] On SIGTERM, 'octave-workspace' is saved, but Octave returns to prompt rather than terminating,
Olaf Till <=