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

Commit e99e5474 authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

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

parents 4785ea60 de73a0cf
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);