Syntactic Confectionery Delight | |
PerlMonks |
Re: Bad file descriptor when trying to close file handleby Discipulus (Canon) |
on Mar 03, 2022 at 11:32 UTC ( [id://11141791]=note: print w/replies, xml ) | Need Help?? |
Hello fireblood, without something small to reproduce your error I can merely shoot in the dark.. but I'm lucky at this sometimes:) Is the filhandle select -ed somewhere? Is fileno returning something meaningful just before the call to close? use diagnostics tell you something more? It seems not be the case, but: is your handle a pipe open? from open docs: > If the filehandle came from a piped open, close returns false if one of the other syscalls involved fails or if its program exits with non-zero status. There is something weird in the environment of the linux box? There are threads involved? Also inspecting $^E can help at OS level
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|