Remove redirect_tty_output call from tcgetattr return

tcgetattr cannot return EIO.
This commit is contained in:
ridiculousfish 2020-08-03 16:42:27 -07:00
parent f1402ac7a3
commit 87d049edd8

View File

@ -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;