mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 14:01:15 -03:00
Restore terminal foreground process group on exit
Fixes https://github.com/fish-shell/fish-shell/issues/197
This commit is contained in:
3
fish.cpp
3
fish.cpp
@@ -444,6 +444,7 @@ int main( int argc, char **argv )
|
||||
|
||||
set_main_thread();
|
||||
setup_fork_guards();
|
||||
save_term_foreground_process_group();
|
||||
|
||||
wsetlocale( LC_ALL, L"" );
|
||||
is_interactive_session=1;
|
||||
@@ -468,7 +469,6 @@ int main( int argc, char **argv )
|
||||
proc_init();
|
||||
event_init();
|
||||
wutil_init();
|
||||
//parser_init();
|
||||
builtin_init();
|
||||
function_init();
|
||||
env_init(&paths);
|
||||
@@ -554,6 +554,7 @@ int main( int argc, char **argv )
|
||||
|
||||
proc_fire_event( L"PROCESS_EXIT", EVENT_EXIT, getpid(), res );
|
||||
|
||||
restore_term_foreground_process_group();
|
||||
history_destroy();
|
||||
proc_destroy();
|
||||
builtin_destroy();
|
||||
|
||||
Reference in New Issue
Block a user