Details
Description
The container-executor function write_exit_code_file_as_nm had a number of failure conditions where it just returns -1 without restoring previous state.
This is not a problem in any of the places where it is currently called, but it could be a problem if future code changes call it before code that depends on the previous state.