In situations where the system is busy,
there are cases where delays occur due to the fsync code,
preventing requests from being processed in a timely manner.
To avoid this, the code has been removed.
Removing this code will not affect the STC operations.
Change-Id: I5e201d9506c5cd98808aad750349dcf121c04bd8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
gsize length = 0;
GError *error = NULL;
int ret = 0;
- FILE *fp = NULL;
data = g_key_file_to_data(keyfile, &length, NULL);
if (!g_file_set_contents(path, data, length, &error)) {
ret = -EIO;
}
- fp = fopen(path, "a+");
- if (fp) {
- fflush(fp);
- fsync(fp->_fileno);
- fclose(fp);
- STC_LOGD("Sync the file to disk");
- }
-
g_free(data);
return ret;
}