mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
Shell: Do not assume that the job has exited after unblock in fg
This commit is contained in:
parent
7aa5a2bc0f
commit
be395aab9a
1 changed files with 4 additions and 1 deletions
|
@ -359,7 +359,10 @@ int Shell::builtin_fg(int argc, const char** argv)
|
||||||
|
|
||||||
block_on_job(job);
|
block_on_job(job);
|
||||||
|
|
||||||
|
if (job->exited())
|
||||||
return job->exit_code();
|
return job->exit_code();
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Shell::builtin_disown(int argc, const char** argv)
|
int Shell::builtin_disown(int argc, const char** argv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue