diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 09:53:10 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 09:53:10 +0200 |
| commit | f5eeeb1f1a0ce300c88abfc70962d26469f8a782 (patch) | |
| tree | 139f26d53698f4b489ac35a65ef8114c5027e001 | |
| parent | de11428a45eb36dfa1c39fc59b56d0273fbec4a0 (diff) | |
delete diag prints
- note: multiarg cmds seem buggy
| -rw-r--r-- | redes/exec.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/redes/exec.c b/redes/exec.c index 8fb42b8..756eee6 100644 --- a/redes/exec.c +++ b/redes/exec.c @@ -9,9 +9,6 @@ void execute_cmd(ExecutableCommand cmd, int* pgid) { - printf("Ok\n"); - fflush(stdout); - pid_t pid = fork(); if (pid == 0) { @@ -104,15 +101,11 @@ void execute_command_pipeline(Pipeline pipeline) { int trunk_fd = STDIN_FILENO; int pgid = -1; - printf("Starting pipeline of length %d\n", pipeline.count); - fflush(stdout); signal(SIGTTIN, SIG_IGN); signal(SIGTTOU, SIG_IGN); for (int i = 0; i < pipeline.count; i++) { - printf("Processing cmd %d\n", i); - fflush(stdout); PlCommand cmd = *get_from_Pipeline(&pipeline, i); ExecutableCommand exec_cmd = process_pl_command(cmd); exec_cmd.stdin_fd = trunk_fd; @@ -140,7 +133,5 @@ void execute_command_pipeline(Pipeline pipeline) { } void execute_pipeline_tree(PipelineTree pltree) { - printf("Hello\n"); - fflush(stdout); execute_command_pipeline(*pltree.root); } |
