fish-shell/tests/pexpects
ridiculousfish ed51e2baac Prevent hanging when restoring the foreground process group at exit
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).
2021-04-05 17:44:14 -07:00
..
bind.py tests: Deactivate that one bind test that still keeps failing 2021-01-26 07:07:51 +01:00
bind_mode_events.py Reformat pexpects 2020-06-08 17:33:04 +02:00
cancel_event.py Reformat 2020-11-22 14:39:48 +01:00
commandline.py Don't enqueue a repaint in the middle of one 2020-09-11 19:23:26 +02:00
complete.py Reset the readline loop state when setting the buffer 2021-02-25 16:19:28 +01:00
exit.py Reformat 2020-11-22 14:39:48 +01:00
exit_handlers.py Add a test that fish_exit handlers run on receipt of SIGHUP 2020-08-30 15:09:34 -07:00
exit_nohang.py Prevent hanging when restoring the foreground process group at exit 2021-04-05 17:44:14 -07:00
fg.py Restore terminal modes after running key bindings with external commands 2021-03-10 22:36:33 -08:00
fkr.py Tests: Yet another delay change 2020-11-11 19:20:55 +01:00
generic.py type: Add missing newline 2021-01-03 17:48:25 +01:00
histfile.py Another formatting run 2020-06-24 20:43:56 +02:00
history.py Make history search smartcase 2020-09-22 16:13:24 +02:00
isatty.py Reformat 2020-11-22 14:39:48 +01:00
job_summary.py Reformat 2020-11-22 14:39:48 +01:00
pipeline.py Restyle codebase 2020-12-06 15:39:54 +01:00
postexec.py Reformat 2020-11-22 14:39:48 +01:00
private_mode.py Allow fish_private_mode to change at runtime 2021-01-02 22:01:47 -08:00
read.py Port read tests to expect 2020-06-13 15:21:40 +02:00
set_color.py Fix crash with set_color --print-colors --background normal 2021-03-09 13:46:08 +01:00
sigint.py Correctly propagate signals from cancelled jobs into parse_execution_context 2020-08-13 15:30:15 -07:00
signals.py tests: Add yet another sleep 2020-09-27 09:22:45 +02:00
terminal.py Only enable actual flow control on Linux 2021-02-15 17:30:50 +01:00
tty_ownership.py Reformat 2020-11-22 14:39:48 +01:00
undo.py Add simple pexpect test for undo 2021-01-07 23:53:31 +01:00
wait.py tests: Increase another timeout 2020-11-06 17:56:38 +01:00