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

Spooky action-at-a-distance #179

Open
FGasper opened this issue Apr 27, 2022 · 0 comments
Open

Spooky action-at-a-distance #179

FGasper opened this issue Apr 27, 2022 · 0 comments

Comments

@FGasper
Copy link
Contributor

FGasper commented Apr 27, 2022

The following hangs:

> perl -Mstrict -Mwarnings -MSocket -e'use Test::MockFile; socketpair my $r, my $w, AF_UNIX, SOCK_STREAM, 0; my $fd = fileno $w; do { open my $w2, "<&=", $fd; -S $w2 }; close $w; <$r>'

… but without T::MF it finishes.

Also if you remove the -S $w2, or if you `stat "===" after it, the program will finish.

I suspect it has to do with the Overload::FileCheck::mock_stat() call; there’s probably a reference to the passed filehandle being kept around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant