mbox

[5/7] lock: refactoring functions

Message ID 1498046834-13674-5-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit c73dc5dcd3efba6ce0a43a4d64b4f438afe8710d
Headers

Message

Jonatan Schlag June 21, 2017, 10:07 p.m. UTC
  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>
---
 src/functions/functions.device  |  2 +-
 src/functions/functions.lock    | 37 +++++++++++++++++++++++++++----------
 src/udev/network-hotplug-rename |  2 +-
 3 files changed, 29 insertions(+), 12 deletions(-)