commit ea2da3a713a6f1d6383c13394584fea74f906e5a parent e4336f7c196af94705c3e001b8835300f6e3a3e1 Author: sin <sin@2f30.org> Date: Mon, 22 Sep 2014 23:50:58 +0100 Use fsync() on fd in datasave() Diffstat:
M | ratox.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ratox.c b/ratox.c @@ -653,6 +653,7 @@ datasave(void) perror("write"); exit(EXIT_FAILURE); } + fsync(fd); free(data); close(fd);