mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:08:12 +00:00
Shell: Restore the terminal PGID before printing out job status on exit
This fixes the assert tripping when interrupting a foreground job. Also make `bg` mark the job as 'should announce exit'.
This commit is contained in:
parent
350b2c6d9e
commit
a2879f53c8
2 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,7 @@ int Shell::builtin_bg(int argc, const char** argv)
|
|||
}
|
||||
|
||||
job->set_running_in_background(true);
|
||||
job->set_should_announce_exit(true);
|
||||
job->set_is_suspended(false);
|
||||
|
||||
dbgln("Resuming {} ({})", job->pid(), job->cmd());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue