mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Shell: Moves pipelined processes to one process group
This commit is contained in:
parent
8a17527bc5
commit
ab3e787334
Notes:
sideshowbarker
2024-07-19 03:51:51 +09:00
Author: https://github.com/alimpfard
Commit: ab3e787334
Pull-request: https://github.com/SerenityOS/serenity/pull/3085
Reviewed-by: https://github.com/BenWiederhake
6 changed files with 44 additions and 11 deletions
|
@ -1142,6 +1142,14 @@ RefPtr<Value> Pipe::run(RefPtr<Shell> shell)
|
|||
last_in_left.should_wait = false;
|
||||
last_in_left.is_pipe_source = true;
|
||||
|
||||
if (first_in_right.pipeline) {
|
||||
last_in_left.pipeline = first_in_right.pipeline;
|
||||
} else {
|
||||
auto pipeline = adopt(*new Pipeline);
|
||||
last_in_left.pipeline = pipeline;
|
||||
first_in_right.pipeline = pipeline;
|
||||
}
|
||||
|
||||
Vector<Command> commands;
|
||||
commands.append(left);
|
||||
commands.append(last_in_left);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue