diff --git a/init/property_service.c b/init/property_service.c index fe7cbb582..eb19f93a7 100644 --- a/init/property_service.c +++ b/init/property_service.c @@ -269,6 +269,7 @@ static void write_persistent_property(const char *name, const char *value) return; } write(fd, value, strlen(value)); + fsync(fd); close(fd); snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, name);