tUse fsync() on fd in datasave() - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ea2da3a713a6f1d6383c13394584fea74f906e5a
(DIR) parent e4336f7c196af94705c3e001b8835300f6e3a3e1
(HTM) 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(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -653,6 +653,7 @@ datasave(void)
perror("write");
exit(EXIT_FAILURE);
}
+ fsync(fd);
free(data);
close(fd);