• Show log

    Commit

  • Hash : 19d9beb7
    Author : Carlos Martín Nieto
    Date : 2015-07-24T19:22:41

    filebuf: remove lockfile upon rename errors
    
    When we have an error renaming the lockfile, we need to make sure
    that we remove it upon cleanup. For this, we need to keep track of
    whether we opened the file and whether the rename succeeded.
    
    If we did create the lockfile but the rename did not succeed, we
    remove the lockfile. This won't protect against all errors, but
    the most common ones (target file is open) does get handled.