Remove temp hack to spawn to not close stderr (used in early debug of pyepg).

This commit is contained in:
Adam Sutton 2012-07-31 12:19:00 +01:00
parent 0535ae554e
commit f65391d1bd

View file

@ -148,7 +148,7 @@ spawn_and_store_stdout(const char *prog, char *const argv[], char **outp)
if(p == 0) {
close(0);
//close(2);
close(2);
close(fd[0]);
dup2(fd[1], 1);
close(fd[1]);
@ -162,7 +162,7 @@ spawn_and_store_stdout(const char *prog, char *const argv[], char **outp)
}
dup2(f, 0);
//dup2(f, 2);
dup2(f, 2);
close(f);
execve(prog, argv, environ);