am e99e5474: Merge "Sync persist property immediately,in case of suddenly remove the battery."
* commit 'e99e5474e101034e2d6e095ebdca011cb62b9386':
Sync persist property immediately,in case of suddenly remove the battery.
diff --git a/init/property_service.c b/init/property_service.c
index fe7cbb5..eb19f93 100644
--- a/init/property_service.c
+++ b/init/property_service.c
@@ -269,6 +269,7 @@
return;
}
write(fd, value, strlen(value));
+ fsync(fd);
close(fd);
snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, name);