diff options
Diffstat (limited to 'src/exec.c')
| -rw-r--r-- | src/exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |
