Skip to content

Commit

Permalink
use new base global for stale_age
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Oct 15, 2023
1 parent 24d0be6 commit be0928c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ function color_string(cstr::String, col::Union{Int64, Symbol})
end

function maybe_cachefile_lock(f, io::IO, print_lock::ReentrantLock, fancyprint::Bool, pkg::Base.PkgId, pkgspidlocked::Dict{Base.PkgId,String})
stale_age = 10 # match stale_age in loading.jl
stale_age = Base.compilecache_pidlock_stale_age
pidfile = Base.compilecache_pidfile_path(pkg)
cachefile = FileWatching.trymkpidlock(f, pidfile; stale_age)
if cachefile === false
Expand Down

0 comments on commit be0928c

Please sign in to comment.