Remove signal blocks from terminal_return_from_job

There's nothing justifying having these here.
This commit is contained in:
ridiculousfish
2019-02-23 13:44:11 -08:00
parent f1b208997c
commit 0ff4046b8c

View File

@@ -821,12 +821,10 @@ static bool terminal_return_from_job(job_t *j) {
return true;
}
signal_block();
if (tcsetpgrp(STDIN_FILENO, getpgrp()) == -1) {
if (errno == ENOTTY) redirect_tty_output();
debug(1, _(L"Could not return shell to foreground"));
wperror(L"tcsetpgrp");
signal_unblock();
return false;
}
@@ -835,7 +833,6 @@ static bool terminal_return_from_job(job_t *j) {
if (errno == EIO) redirect_tty_output();
debug(1, _(L"Could not return shell to foreground"));
wperror(L"tcgetattr");
signal_unblock();
return false;
}
@@ -853,7 +850,6 @@ return false;
}
#endif
signal_unblock();
return true;
}