Files
sunnypilot/common
Willem Melching 85916f61e8 Params: new class FileLock (#20636)
* new class LockFile

* lock->try_lock

* rebase master

* close if fd_ >=0

* rename try_lock to lock

* keep tryring if flock() return EINTR

* throw exception on error

* keep trying if open() gets interrupted by a signal

* close fd_ before throw flock exception

* add macro HANDLE_EINTR

* HANDLE_EINTR for open & write

* add errno in exception

* add destructor

* don't throw exception,log err and return

* Revert "don't throw exception,log err and return"

This reverts commit 6e1ba4a1bd82de3d4d07db5238a82184fd2ec9b4.

* add lock file name in exception

* cleanup  exception text

* use lock_guard in function put

* anonymous namespace

* use do-while(0) instead of goto

* cleanup read_db_all

* cleanup FileLock

* remove fchmod 0666 for apks

* Revert "remove fchmod 0666 for apks"

This reverts commit b389c31762417c4465d73be2453efcf7bc693aee.

* log instead of runtime error

* keep libs

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 74aa6e29c9
2021-04-09 16:35:44 +02:00
..
2021-02-09 17:23:46 -08:00
2020-01-17 10:28:44 -08:00
2020-01-17 10:28:44 -08:00
2020-12-18 13:29:20 +01:00
2020-01-17 10:28:44 -08:00
2020-10-17 13:33:12 -07:00
2020-12-16 21:30:23 -08:00
2020-01-17 10:28:44 -08:00
2021-03-26 17:36:01 -07:00
2021-01-14 18:43:50 -08:00
2021-04-07 19:12:35 +02:00
2021-01-19 14:39:00 -08:00
2020-10-09 18:39:54 -07:00
2020-12-16 21:30:23 -08:00
2021-04-09 16:35:44 +02:00
2020-05-31 00:48:47 -07:00
2020-11-06 18:44:04 -08:00
2020-05-30 20:14:58 -07:00
2020-10-20 16:07:05 -07:00