mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
ed51e2baac
When fish starts, it notices which pgroup owns the tty, and then it restores that pgroup's tty ownership when it exits. However if fish does not own the tty, then (on Mac at least) the tcsetpgrp call triggers a SIGSTOP and fish will hang while trying to exit. The first change is to ignore SIGTTOU instead of defaulting it. This prevents the hang; however it risks re-introducing #7060. The second change somewhat mitigates the risk of the first: only do the restore if the initial pgroup is different than fish's pgroup. This prevents some useless calls which might potentially steal the tty from another process (e.g. in #7060). |
||
---|---|---|
.. | ||
checks | ||
pexpects | ||
test_functions | ||
.gitignore | ||
history_sample_bash | ||
history_sample_corrupt1 | ||
history_sample_fish_1_x | ||
history_sample_fish_2_0 | ||
interactive.config | ||
interactive.fish | ||
test_util.fish | ||
test.fish |