From ea2da3a713a6f1d6383c13394584fea74f906e5a Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 22 Sep 2014 23:50:58 +0100 Subject: Use fsync() on fd in datasave() --- ratox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ratox.c') 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); -- cgit v1.2.3