Skip to content

Unlock without unlink #112

Merged
merged 3 commits into from
Sep 17, 2021
Merged

Unlock without unlink #112

merged 3 commits into from
Sep 17, 2021

Commits on Sep 17, 2021

  1. mx_flock: Don't unlock before close

    We don't need to call flock(fd, LOCK_UN) for a file we are going to
    close anyway, so don't do it.
    
    This might make a difference if the lock fd was dupped into another fd.
    donald committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    2601e06 View commit details
    Browse the repository at this point in the history
  2. mx_flock: Add mx_funlock_nodelete

    Add function to release the lock without removing the logfile. This is
    useful for forked children, which inherited the lock and just need to
    give it up.
    donald committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    0be33f7 View commit details
    Browse the repository at this point in the history
  3. mxqd: Unlock but do not delete lock file in reaper

    The reaper inherits the locked lock file and needs to unlock it. Use
    mx_funlock_nodelete instead of mx_funlock so that the lock file is not
    removed.
    donald committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    b8fd11a View commit details
    Browse the repository at this point in the history