in reply to disable ctrl+c in my program

ctrl-c sends what's know as a signal to the OS. The OS then sends that signal to your program. Read up on the %SIG hash. I believe you're looking for $SIG{KILL}, though I could be mistaken.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: disable ctrl+c in my program
by Abigail-II (Bishop) on Jan 15, 2003 at 21:16 UTC
    Eh, no. SIGKILL is one of two signals you cannot ignore (the other is SIGSTOP). SIGKILL is what you get if you do kill -9 PID. ^C typically sends SIGINT. So, you would have to do SIG {INT} = 'IGNORE'.

    Abigail