projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec09f7a
)
Stop leaking the state fd on reload.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sun, 13 Apr 2014 20:33:19 +0000
(22:33 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sun, 13 Apr 2014 20:33:19 +0000
(22:33 +0200)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index
abc7617
..
28acd39
100644
(file)
--- 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)) {