Fix not closing pipes on a failed command
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 5 Sep 2024 07:27:09 +0000 (09:27 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 5 Sep 2024 07:27:09 +0000 (09:27 +0200)
commitce36110085e30f746fe9f66247ab7e6d751edfc1
treeb8a76060d72d4b03931817bce0fe11d5057cc67f
parent0a6e47dadd82d8bc3d71c197a99681cfd3562f5e
Fix not closing pipes on a failed command

The symptom of this is no output after execution of command of he form
"nonexistent_cmd | rest of pipeline". The nonexistent command produces
error, which prevents forgetting the pipe fds. This makes it so (at
least) two fds are not forgotten which interferes later on.
inc/execution.h
src/exe_pipeline.c