mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
fix(exit): skip unnecessary steps in TUI preserve_exit() (#21897)
This prevents the TUI from doing unexpected things when receiving a deadly signal or running out of memory.
This commit is contained in:
@@ -811,6 +811,11 @@ void preserve_exit(void)
|
||||
really_exiting = true;
|
||||
// Ignore SIGHUP while we are already exiting. #9274
|
||||
signal_reject_deadly();
|
||||
|
||||
if (ui_client_channel_id) {
|
||||
os_exit(1);
|
||||
}
|
||||
|
||||
os_errmsg(IObuff);
|
||||
os_errmsg("\n");
|
||||
ui_flush();
|
||||
|
Reference in New Issue
Block a user