From f5eeeb1f1a0ce300c88abfc70962d26469f8a782 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Thu, 21 May 2026 09:53:10 +0200 Subject: delete diag prints - note: multiarg cmds seem buggy --- redes/exec.c | 9 --------- 1 file changed, 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); } -- cgit v1.2.3