diff options
-rw-r--r-- | shell/ash.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c index 5768b6d71..1fc2a44b1 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -6635,15 +6635,6 @@ redirect(union node *redir, int flags) | |||
6635 | if (!closed) { | 6635 | if (!closed) { |
6636 | /* ^^^ optimization: saving may already | 6636 | /* ^^^ optimization: saving may already |
6637 | * have closed it. If not... */ | 6637 | * have closed it. If not... */ |
6638 | #if ENABLE_PLATFORM_MINGW32 && !defined(_UCRT) && !defined(_WIN64) | ||
6639 | // Workaround for problems with streams in 32-bit MSVCRT | ||
6640 | if (fd == fileno(stdin)) | ||
6641 | fclose(stdin); | ||
6642 | else if (fd == fileno(stdout)) | ||
6643 | fclose(stdout); | ||
6644 | else if (fd == fileno(stderr)) | ||
6645 | fclose(stderr); | ||
6646 | #endif | ||
6647 | close(fd); | 6638 | close(fd); |
6648 | } | 6639 | } |
6649 | } else { | 6640 | } else { |