mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
Shell: Avoid waiting for jobs that were *just* unblocked
This fixes the issue with C-z not suspending the job on the first try. ...and further signal issues when the suspended job is contiued.
This commit is contained in:
parent
46661f02c6
commit
dc62371439
Notes:
sideshowbarker
2024-07-19 04:51:16 +09:00
Author: https://github.com/alimpfard
Commit: dc62371439
Pull-request: https://github.com/SerenityOS/serenity/pull/2790
4 changed files with 14 additions and 4 deletions
|
@ -121,8 +121,10 @@ int main(int argc, char** argv)
|
|||
Core::EventLoop::register_signal(SIGTSTP, [](auto) {
|
||||
auto job = s_shell->current_job();
|
||||
s_shell->kill_job(job, SIGTSTP);
|
||||
if (job)
|
||||
if (job) {
|
||||
job->set_is_suspended(true);
|
||||
job->unblock();
|
||||
}
|
||||
});
|
||||
|
||||
#ifndef __serenity__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue