mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 04:41:15 -03:00
Revert "Add vector of cleanup/termination events to be executed before quit"
This reverts commit 8c14f0f30f.
This list is not reliable - there are many ways for fish to quit that does not
invoke these functions. It's also not necessary since the history is correctly
saved on exec.
This commit is contained in:
@@ -466,12 +466,6 @@ int main(int argc, char **argv) {
|
||||
parser.emit_profiling(s_profiling_output_filename);
|
||||
}
|
||||
|
||||
// since we exit without destructors, we need some way to run cleanup code when necessary
|
||||
while (!before_exit.empty()) {
|
||||
before_exit.top()();
|
||||
before_exit.pop();
|
||||
}
|
||||
|
||||
history_save_all();
|
||||
proc_destroy();
|
||||
exit_without_destructors(exit_status);
|
||||
|
||||
Reference in New Issue
Block a user