in reply to Re^2: Catching CTRL+ALT+DEL close event and take actions
in thread Catching WINDOW close event and take actions
In general, a user process is not able to intercept the Control-Alt-Delete sequence.
Try this:
#!/usr/bin/perl use warnings; use strict; sub handler_universal { print "\ngot a signal $_[0]\n"; $SIG{$_[0]} = \&handler_universal; } my @nami = keys(%SIG); #foreach( @nami){ print "$_\t$SIG{$_}\n"; } while(1){ for my $namesig (@nami) {$SIG{$namesig} = \&handler_universal;} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Catching CTRL+ALT+DEL close event and take actions
by Anonymous Monk on Sep 22, 2011 at 10:05 UTC |