Merge "Sync persist property immediately,in case of suddenly remove the battery."
This commit is contained in:
commit
e99e5474e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue