Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.