ajeet@perl has asked for the wisdom of the Perl Monks concerning the following question:
I am using Perl on a Solaris Machine, I am getting core dump of my processes in /var/core, when i termintae my program using ctrl+c, Even When i register handler for INT,TERM,KILL signal. I have writtent following in my handler ....
################################################################# # # Name : sigTERMhandler # Input : None # Return : None # # Function of subroutine: # Handler for SIGTERM # ################################################################# sub sigTERMhandler { # # if debug is ON,log a debug statement if( defined $options{d} || $DEBUG eq "ON" ) { $log->print($filename.":".__LINE__.": Received TERM process ID + :: " . $$ . " Shutting Down Gracefully...\n"); } exit(0); }
Any pointer, about how to prevent my program to avoid core dumps..
Thanks in Advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Process Core dumps
by salva (Canon) on Apr 12, 2010 at 08:36 UTC | |
by ajeet@perl (Acolyte) on Apr 12, 2010 at 09:43 UTC | |
by salva (Canon) on Apr 12, 2010 at 12:21 UTC | |
|
Re: Process Core dumps
by cdarke (Prior) on Apr 12, 2010 at 08:37 UTC | |
by ajeet@perl (Acolyte) on Apr 12, 2010 at 09:45 UTC | |
|
Re: Process Core dumps
by Marshall (Canon) on Apr 12, 2010 at 20:43 UTC |