dsb has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to catch SIG_INTs in the usual way:
dsb
This @ISA my( $cool ) %SIG
Trouble is, it seems that everytime a signal is sent/caught, the process core dumps. I've read the bit in perlipc that talks about safe and unsafe signals and although I was initially running slightly more complicated code in the handler() routine, it is now as simple as is demonstrated here but still core dumping.$SIG{INT} = \&handler; sub handler { $sig++; }
I have no more ideas and could use some help.
Update:
Thanks Paul. I'm on Solaris 10, using Perl 5.8.8.
Thanks
dsb
This @ISA my( $cool ) %SIG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Signal Handling throws Core Dump
by almut (Canon) on Apr 25, 2007 at 16:20 UTC | |
by dsb (Chaplain) on Apr 25, 2007 at 16:43 UTC | |
by jettero (Monsignor) on Apr 25, 2007 at 16:57 UTC | |
by former33t (Scribe) on Apr 26, 2007 at 03:05 UTC | |
by jrw (Monk) on Apr 26, 2007 at 16:52 UTC | |
by dsb (Chaplain) on Apr 28, 2007 at 03:13 UTC | |
Re: Signal Handling throws Core Dump
by cengineer (Pilgrim) on Apr 25, 2007 at 15:29 UTC | |
by dsb (Chaplain) on Apr 25, 2007 at 15:50 UTC | |
Re: Signal Handling throws Core Dump
by jettero (Monsignor) on Apr 25, 2007 at 14:06 UTC | |
by dsb (Chaplain) on Apr 25, 2007 at 15:13 UTC | |
by maard (Pilgrim) on Apr 25, 2007 at 15:21 UTC | |
Re: Signal Handling throws Core Dump
by Steve_p (Priest) on Apr 26, 2007 at 17:19 UTC |
Back to
Seekers of Perl Wisdom