mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 08:10:24 +08:00
Remove redirect_tty_output call from tcgetattr return
tcgetattr cannot return EIO.
This commit is contained in:
parent
f1402ac7a3
commit
87d049edd8
@ -900,7 +900,6 @@ static bool terminal_return_from_job_group(job_group_t *jg, bool restore_attrs)
|
||||
if (tcgetattr(STDIN_FILENO, &tmodes)) {
|
||||
// If it's not a tty, it's not a tty, and there are no attributes to save (or restore)
|
||||
if (errno == ENOTTY) return false;
|
||||
if (errno == EIO) redirect_tty_output();
|
||||
FLOGF(warning, _(L"Could not return shell to foreground"));
|
||||
wperror(L"tcgetattr");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user