1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:57:34 +00:00

Shell: Do not assume that the job has exited after unblock in fg

This commit is contained in:
AnotherTest 2020-08-12 06:29:21 +04:30 committed by Andreas Kling
parent 7aa5a2bc0f
commit be395aab9a

View file

@ -359,7 +359,10 @@ int Shell::builtin_fg(int argc, const char** argv)
block_on_job(job);
return job->exit_code();
if (job->exited())
return job->exit_code();
else
return 0;
}
int Shell::builtin_disown(int argc, const char** argv)