From 7c7988003b29514464d1a9c607e6991c25c8b88d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 Jun 2025 15:16:00 +0100 Subject: [PATCH] ITS#10355 lmdb mplay: don't assign to stdin/stdout --- libraries/liblmdb/mplay.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/liblmdb/mplay.c b/libraries/liblmdb/mplay.c index 0fef74f67e..4673036774 100644 --- a/libraries/liblmdb/mplay.c +++ b/libraries/liblmdb/mplay.c @@ -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 { -- 2.47.2