# FileInputStream and stdin (bug or not)

**URL:** <https://forum.juce.com/t/fileinputstream-and-stdin-bug-or-not/65024>\
**Category:** Linux\
**Created:** [January 27, 2025, 10:38am UTC](https://forum.juce.com/t/fileinputstream-and-stdin-bug-or-not/65024 "2025-01-27T10:38:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiosmail](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sergiosmail/32/17885_2.png) [@sergiosmail](https://forum.juce.com/u/sergiosmail)\
**Post date:** [January 27, 2025, 10:38am UTC](https://forum.juce.com/t/fileinputstream-and-stdin-bug-or-not/65024/1 "2025-01-27T10:38:55Z")

</div>

Dear forum

I’m getting same problem described [here](https://forum.juce.com/t/juce-assumes-fd-can-never-be-0-bug/30306).

Basically, if I release stdin handle (fd #0) FileInputStream::readInternal fails when #0 is reused. This is done intentionatelly or it’s just a bug?

---

<div class="post-metadata">

**Author:** ![attila](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/attila/32/11206_2.png) [@attila](https://forum.juce.com/u/attila)\
**Post date:** [February 7, 2025, 12:27pm UTC](https://forum.juce.com/t/fileinputstream-and-stdin-bug-or-not/65024/2 "2025-02-07T12:27:55Z")

</div>

A fix for this issue is now out on `develop`

> <https://github.com/juce-framework/JUCE/commit/49b6dfb7c839ae6d7aa6c66823dc87df601fec9a>
