]> git.ipfire.org Git - people/ms/network.git/commit - src/functions/functions.lock
lock: refactoring functions
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 21 Jun 2017 12:07:12 +0000 (14:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Jun 2017 14:30:59 +0000 (16:30 +0200)
commitc73dc5dcd3efba6ce0a43a4d64b4f438afe8710d
treee63993d0ac5f91766817491614aff9432ff499fb
parentb7fbb0cd89f2b943b79514178f8380b021a93c5b
lock: refactoring functions

lock_acquire:
Refactor function to set the timeout manually
and to avoid the sleep of 0,25s when the timeout value is zero.

lock_exists:
Provides an easier to check if a lock exists

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.device
src/functions/functions.lock
src/udev/network-hotplug-rename