Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Detect whether a writeable filehandle has closed?

by jdporter (Canon)
on Jan 13, 2021 at 12:57 UTC ( #11126857=note: print w/replies, xml ) Need Help??


in reply to Re: Detect whether a writeable filehandle has closed?
in thread Detect whether a writeable filehandle has closed?

Maybe an END block in the child could signal that the filehandle is gone

The child is not perl, it's a compiled C program.

  • Comment on Re^2: Detect whether a writeable filehandle has closed?

Replies are listed 'Best First'.
Re^3: Detect whether a writeable filehandle has closed?
by talexb (Canon) on Jan 14, 2021 at 09:43 UTC

    OK, so perhaps using the _atexit call (or whatever the equivalent is in your RTL) in the C code. The general idea is for the code to catch that the child has exitted and signal the caller.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-10-16 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (70 votes). Check out past polls.

    Notices?