mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Shell: Do not assume that the job has exited after unblock in fg
This commit is contained in:
parent
7aa5a2bc0f
commit
be395aab9a
Notes:
sideshowbarker
2024-07-19 03:51:39 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/be395aab9a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user