You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# deprecated internal function used by some packages
679
689
temp_cleanup_purge(; force=false) = force ?temp_cleanup_purge_all() :@lock TEMP_CLEANUP_LOCK temp_cleanup_purge_prelocked(false)
680
690
691
+
functiontemp_cleanup_postprocess(cleanup_dirs)
692
+
if!isempty(cleanup_dirs)
693
+
rmcmd ="""
694
+
cleanuplist = readlines(stdin) # This loop won't start running until stdin is closed, which is supposed to be sequenced after the process exits
695
+
sleep(1) # Wait for the operating system to hopefully be ready, since the OS implementation is probably incorrect, given the history of buggy work-arounds like this that have existed for ages in dotNet and libuv
696
+
for path in cleanuplist
697
+
try
698
+
rm(path, force=true, recursive=true)
699
+
catch ex
700
+
@warn "Failed to clean up temporary path \$(repr(path))\n\$ex" _group=:file
0 commit comments