On Mon, 12 Nov 2001, jpf wrote:

> Does anyone know if it is possible to disable ctrl-c so that the user
> cannot exit at a specific point?
> This is on a windows platform.

(Not sure why you sent this to the beginners-cgi list, so I have
redirected to the beginners list)

I don't know if you can capture signals on Windows in the same manner as
you can on Unix, but assuming there is some kind of similar thing going
on, you can do this:

$SIG{INT} = 'IGNORE';

or, you can set up your own handler:

sub int_handler {
        $SIG{INT} = \int_handler;
        warn "Sorry, can't do that here!\n";
}

$SIG{INT} = \int_handler;

-- Brett

                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
If you marry a man who cheats on his wife, you'll be married to a man who
cheats on his wife.
                -- Ann Landers


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to