Remove temp hack to spawn to not close stderr (used in early debug of pyepg).
This commit is contained in:
parent
0535ae554e
commit
f65391d1bd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue