summaryrefslogtreecommitdiff
path: root/src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exec.c b/src/exec.c
index 86175a9..fb579ad 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -36,7 +36,7 @@ void source_script(char* fname, ShellState* shstate) {
while (getline(&line, &len, fp) != -1) {
line[strcspn(line, "\r\n")] = '\0';
- execute_line(line, shstate);
+ execute_string_line(line, shstate);
}
free(line);
fclose(fp);
@@ -265,9 +265,9 @@ void execute_command_pipeline(Pipeline pipeline, int stdin_fd, int stdout_fd, bo
}
}
-void execute_pipeline_tree(PipelineTree pltree, ShellState* shstate) {
+void execute_pipeline_tree(Pipeline root_pl, ShellState* shstate, int stdin_fd, int stdout_fd) {
int pgid = -1;
signal(SIGTTIN, SIG_IGN);
signal(SIGTTOU, SIG_IGN);
- execute_command_pipeline(*pltree.root, STDIN_FILENO, STDOUT_FILENO, true, &pgid, shstate);
+ execute_command_pipeline(root_pl, stdin_fd, stdout_fd, true, &pgid, shstate);
}