Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle 2 file handles against the same file. #27

Open
toddr opened this issue Dec 20, 2018 · 2 comments
Open

Can't handle 2 file handles against the same file. #27

toddr opened this issue Dec 20, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@toddr
Copy link
Member

toddr commented Dec 20, 2018

my $f = Test::MockFile->file("/abc", "content");
open(my $fh, "<", "/abc");
open(my $fh2, "<", "/abc"); # This'll break stuff.
@xsawyerx
Copy link
Contributor

xsawyerx commented Jan 3, 2022

Technically, you are allowed to create multiple different filehandles to the same file, so I am classifying this as a bug.

@xsawyerx xsawyerx added the bug Something isn't working label Jan 3, 2022
@toddr
Copy link
Member Author

toddr commented Jan 3, 2022

Agreed. It'd be good to fix this but we're probably going to have to change the code that tracks all of this. I sure hope this doesn't bring up fileno :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants