Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: disable ctrl+c in my program

by thinker (Parson)
on Jan 15, 2003 at 20:24 UTC ( [id://227218]=note: print w/replies, xml ) Need Help??


in reply to disable ctrl+c in my program

Hi patrix,

the signal you want to catch is the interrupt signal.
Just put in a line like
$SIG{'INT'} = 'IGNORE';
and the program will no longer terminate on Ctrl-C

Hope this helps

thinker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found