diff options
Diffstat (limited to 'src/storage.c')
-rwxr-xr-x | src/storage.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c index 7d031303..2da54d6c 100755 --- a/src/storage.c +++ b/src/storage.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#include <stdio.h> #include <errno.h> #include <unistd.h> #include <sys/stat.h> @@ -73,6 +74,19 @@ static int storage_save(GKeyFile *keyfile, char *pathname) ret = -EIO; } +#if defined TIZEN_EXT + { + FILE *fp = NULL; + fp = fopen(pathname, "a+"); + if(fp){ + fflush(fp); + fsync(fp->_fileno); + fclose(fp); + DBG("sync the file to disk"); + } + } +#endif + g_free(data); return ret; |