mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 20:10:11 -05:00
ITS#10355 lmdb mplay: don't assign to stdin/stdout
This commit is contained in:
parent
c85bcff9c5
commit
7c7988003b
1 changed files with 2 additions and 4 deletions
|
|
@ -483,12 +483,10 @@ static pidpair *addpid(int tpid)
|
|||
pipe(fdin);
|
||||
if ((pid = fork()) == 0) {
|
||||
/* child */
|
||||
fclose(stdin);
|
||||
fclose(stdout);
|
||||
fflush(stdin);
|
||||
fflush(stdout);
|
||||
dup2(fdout[0], 0);
|
||||
dup2(fdin[1], 1);
|
||||
stdin = fdopen(0, "r");
|
||||
stdout = fdopen(1, "w");
|
||||
child();
|
||||
return 0; /* NOTREACHED */
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue