]> gitweb.factorcode.org Git - factor.git/commit
VM: fix move_file called from save_image
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 29 Sep 2015 21:08:45 +0000 (23:08 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 29 Sep 2015 21:13:10 +0000 (23:13 +0200)
commit2536b6cd9344224ed7e487ef23b81073d3dd9198
tree6ac386db37a8d03f612b9a4ce806957b2c24a795
parent40eb664425597565278740a2fadb344c6dcf9a53
VM: fix move_file called from save_image

save_image() shouldn't throw exceptions because if the 'then_die'
argument is t it would leave factor in an inconsistent state. So
therefore move_file() should be fixed and raw_fclose() called instead of
safe_fclose().
vm/factor.hpp
vm/image.cpp
vm/io.cpp
vm/os-unix.cpp
vm/os-unix.hpp
vm/os-windows.cpp
vm/os-windows.hpp
vm/vm.hpp