diff options
author | sin <sin@2f30.org> | 2014-09-22 23:50:58 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-22 23:50:58 +0100 |
commit | ea2da3a713a6f1d6383c13394584fea74f906e5a (patch) | |
tree | f3f1a169aa64cb2ab3c76ecd2fad4ce58a6830f5 /ratox.c | |
parent | e4336f7c196af94705c3e001b8835300f6e3a3e1 (diff) |
Use fsync() on fd in datasave()
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -653,6 +653,7 @@ datasave(void) perror("write"); exit(EXIT_FAILURE); } + fsync(fd); free(data); close(fd); |