Skip to content

Commit

Permalink
HACK: debug PROGRAM_CLEAN_UP
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 29, 2020
1 parent 4df0caf commit 989af9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/session.g
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ BIND_GLOBAL("PROGRAM_CLEAN_UP", function()
funcs := GAPInfo.AtExitFuncs;
fi;
while not IsEmpty(funcs) do
PrintTo("*stderr*", "still ", Length(funcs), "AtExitFuncs to invoke...\n");
f := Remove(funcs);
if IsFunction(f) then
CALL_WITH_CATCH(f,[]);
fi;
od;
PrintTo("*stderr*", "Done invoking all AtExitFuncs\n");
fi;
end);

Expand Down

0 comments on commit 989af9f

Please sign in to comment.