Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40d49a02 authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am e99e5474: Merge "Sync persist property immediately,in case of suddenly remove the battery."

* commit 'e99e5474':
  Sync persist property immediately,in case of suddenly remove the battery.
parents c33702dd e99e5474
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);