diff options
Diffstat (limited to 'Shell/Shell.cpp')
-rw-r--r-- | Shell/Shell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index b4e8ee0d40..ddfad4d600 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -572,7 +572,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command) StringBuilder cmd; cmd.join(" ", command.argv); - auto job = adopt(*new Job(child, (unsigned)child, cmd.build(), find_last_job_id() + 1)); + auto job = Job::create(child, (unsigned)child, cmd.build(), find_last_job_id() + 1); jobs.set((u64)child, job); job->on_exit = [](auto job) { |