mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
committed by
Andreas Kling
parent
0dac7af6c5
commit
c589625418
@@ -500,6 +500,10 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int retval = 0;
|
||||
if (run_builtin(command, rewirings, retval))
|
||||
return nullptr;
|
||||
|
||||
Vector<const char*> argv;
|
||||
Vector<String> copy_argv = command.argv;
|
||||
argv.ensure_capacity(command.argv.size() + 1);
|
||||
@@ -509,10 +513,6 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
|
||||
|
||||
argv.append(nullptr);
|
||||
|
||||
int retval = 0;
|
||||
if (run_builtin(argv.size() - 1, argv.data(), retval))
|
||||
return nullptr;
|
||||
|
||||
int sync_pipe[2];
|
||||
if (pipe(sync_pipe) < 0) {
|
||||
perror("pipe");
|
||||
|
||||
Reference in New Issue
Block a user