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