Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Bad file descriptor when trying to close file handle

by Discipulus (Canon)
on Mar 03, 2022 at 11:32 UTC ( [id://11141791]=note: print w/replies, xml ) Need Help??


in reply to Bad file descriptor when trying to close file handle

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found