|
From: Karthik K. V. <kar...@gm...> - 2015-12-08 13:59:56
|
Hi,
In wrapper_unix.c we have pipedes to be an array of two descriptors.
if (dup2(pipedes[STDOUT_FILENO], STDERR_FILENO) < 0) { //Looks okay but
shouldn't it be pipedes[STDERR_FILENO] ?
However, we end up closing pipedes[STDERR], which is pipedes[2] which
doesn't exist.
We need to set pipedes to 3 elements for this code to work properly.
Thanks,
-Karthik
|