mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Remove signal blocks from terminal_return_from_job
There's nothing justifying having these here.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user