Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Spooky actions from a signal handler possible?

by RonW (Parson)
on Feb 24, 2015 at 20:19 UTC ( [id://1117716]=note: print w/replies, xml ) Need Help??


in reply to Spooky actions from a signal handler possible?

Interrupt handlers in Perl are able to modify package variables, so your handler could change a flag. If a designated package variable contains an object reference, then your handler could change the value of a field in that object.

For your situation, may need to use the :perlio layer with the file handles associated with the pipes.

See Perl IPC Signals, including the discussion of Deferred Signals and Interrupting IO

Replies are listed 'Best First'.
Re^2: Spooky actions from a signal handler possible?
by belg4mit (Prior) on Feb 24, 2015 at 20:36 UTC
    Oh believe me, I read and reread perlipc, perldoc -f open, etc. etc. many times to try figure out how to go about this :-P I am using 5.8.0+ with the default :perlio on the handle. Thanks though.

    --
    In Bob We Trust, All Others Bring Data.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2024-04-18 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found