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
Notes: sideshowbarker 2024-07-19 03:51:39 +09:00

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)