[all-commits] [llvm/llvm-project] d0c869: [Support] Prevent leaking unique lock files (#130984)

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Mar 13 16:16:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0c869521ce0b15d0d5d152d4fbfcc0f75377e91
      https://github.com/llvm/llvm-project/commit/d0c869521ce0b15d0d5d152d4fbfcc0f75377e91
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M llvm/lib/Support/LockFileManager.cpp

  Log Message:
  -----------
  [Support] Prevent leaking unique lock files (#130984)

Prior to this PR, failing to get the host ID would leave the unique lock
file on the file system. This is now fixed by constructing
`RemoveUniqueLockFileOnSignal` earlier. This PR also removes one call to
`sys::fs::remove()` that is now redundant and another that was redundant
even before this patch.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list