K
Karan Rajput
Hi,
Can anybody provide a ruby signal example ?
I am running a simple program contains,
#######################
sleep (10)
trap.Signal('SIGNIT') { proc to handle signal }
#####################
If i will do (Ctrl + c), it should go to proc . But its not working.
Does anybody have working example? Thanks in advance.
Can anybody provide a ruby signal example ?
I am running a simple program contains,
#######################
sleep (10)
trap.Signal('SIGNIT') { proc to handle signal }
#####################
If i will do (Ctrl + c), it should go to proc . But its not working.
Does anybody have working example? Thanks in advance.