From 5c2a686e45e8c25e3f9cd7598cb22182c2c098d6 Mon Sep 17 00:00:00 2001
From: rick <rick@gnous.eu>
Date: Thu, 18 Feb 2021 18:41:43 +0100
Subject: [PATCH] Patch bug pipe

---
 src/shellOpt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shellOpt.c b/src/shellOpt.c
index bb75766..df0fd39 100644
--- a/src/shellOpt.c
+++ b/src/shellOpt.c
@@ -53,8 +53,8 @@ int main()
             dup2(my_pipe[0], STDIN_FILENO);
           else if (index == 0)
             dup2(my_pipe[1], STDOUT_FILENO);
-          //close(my_pipe[0]);
-          //close(my_pipe[1]);
+          close(my_pipe[0]);
+          close(my_pipe[1]);
 
           execvp(args[0], args);
           return 0;