summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index d52e0a2..b827f74 100644
--- a/ratox.c
+++ b/ratox.c
@@ -653,6 +653,7 @@ datasave(void)
perror("write");
exit(EXIT_FAILURE);
}
+ fsync(fd);
free(data);
close(fd);