You can't trap SIGKILL, but you can trap SIGTERM. Change it to TERM and try kill -TERM <pid>
On Fri, 25 Mar 2005 23:00:46 +0100, Bas Schulte <[EMAIL PROTECTED]> wrote: > Hi, > > my POE app install a handler for sigint ans sigkill > ($poe_kernel->sig(INT => 'sigint');, $poe_kernel->sig(KILL => > 'sigint');)), this works fine when I start the app and hit ctrl-c. > However, when I kill it using kill on the commandline with the pid of > the POE app, it just prints "Terminated" and abruptly stops, without > calling my installed handler. > > BTW, I'm not using "kill -KILL pid", just 'kill pid". > > This on mac os 10.2, gonna try it on a linux, see if there's a subtle > difference there ;) > > Regards, > > Bas. > > -- David Davis Perl Programmer http://teknikill.net/ Try CPAN Suggest! http://cpan.teknikill.net/
