mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
committed by
Andreas Kling
parent
0dac7af6c5
commit
c589625418
Notes:
sideshowbarker
2024-07-19 03:36:12 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/c589625418e Pull-request: https://github.com/SerenityOS/serenity/pull/3144 Issue: https://github.com/SerenityOS/serenity/issues/3072 Reviewed-by: https://github.com/awesomekling
@@ -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