Skip to content

Commit f5ebe9f

Browse files
revert atexit print
1 parent 2529009 commit f5ebe9f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

base/precompilation.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,13 +1011,10 @@ end
10111011
const register_atexit_hook = Base.OncePerProcess{Nothing}() do
10121012
Base.atexit() do
10131013
task = @lock BG BG.task
1014-
if task !== nothing && !istaskdone(task)
1015-
stop_background_precompile(; graceful=false)
1016-
wait(task)
1017-
end
1018-
# Safety net: ensure cursor is visible when Julia exits, in case
1019-
# background precompilation left it hidden.
1020-
stderr isa Base.TTY && print(stderr, ansi_enablecursor)
1014+
task === nothing && return
1015+
istaskdone(task) && return
1016+
stop_background_precompile(; graceful=false)
1017+
wait(task)
10211018
end
10221019
nothing
10231020
end

0 commit comments

Comments
 (0)