[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60875] Save function doesn't warn when disk i
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #60875] Save function doesn't warn when disk is full |
Date: |
Sat, 3 Jul 2021 14:09:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 |
Follow-up Comment #3, bug #60875 (project octave):
It's not like this is particularly difficult to solve, but it is tedious.
Saving data in Octave passes through a hierarchy of functions and finding the
right spot to make the change is probably the critical strategic question.
It looks to me like one intervention needs to be made in
load_save_system::save (const octave_value_list& args, int nargout)
in load-save.cc:1399. This is where a filestream is opened, and after data is
written via subroutines, where the filestream is closed. An unwind_action
object probably needs to be used to close the filestream if a subroutine
throws an error ().
The second bit is harder. Where in the tree of functions should the
filestream (variable name "os") be checked for goodness?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60875>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/