utils: implement fw3_lock_path() & fw3_unlock_path()
authorAlexander Couzens <lynxis@fe80.eu>
Fri, 17 May 2019 09:14:45 +0000 (11:14 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 22 Aug 2019 09:28:24 +0000 (11:28 +0200)
commitc1d3a4df49c9b9df38b546a1a094e63e107a1074
tree2dbe188ca22e199077c301edefb8b9ec430be47e
parentbf29c1e7e95c00953da9430e4c5144ef2b79a361
utils: implement fw3_lock_path() & fw3_unlock_path()

To lock a second lock file at the same time, introduce fw3_{un,}lock_path.
fw3_lock_path support the path as parameter in difference to fw3_lock which
only locks the fw3 lock file (/var/run/fw3.lock)

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
utils.c
utils.h