X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=main.cpp;h=28acd3962d6a5950e5a92487aed675c4ff2f2c4e;hp=abc7617d0ee3826cbde7ec0b119e0e0dfa91238f;hb=4f982039cd792ee3e3629bb00f7223c2c19c96e9;hpb=ec09f7a76908e4ab04337f941acf8e40a03a39ab diff --git a/main.cpp b/main.cpp index abc7617..28acd39 100644 --- a/main.cpp +++ b/main.cpp @@ -393,7 +393,7 @@ start: if (state_fd != -1) { log(INFO, "Deserializing state from previous process..."); string serialized; - if (!read_tempfile(state_fd, &serialized)) { + if (!read_tempfile_and_close(state_fd, &serialized)) { exit(1); } if (!loaded_state.ParseFromString(serialized)) {