Setup:Operating system: Solaris 10Perl version: v5.8.4 built for i86pc-solaris-64intContext:I have two systems both running same Solaris version and same Perl version (although an older build time and patches). In that system I can run multiple perl programs all of which are supervised. The supervisor, has many subsystems and one of them is responsible for running these perl script (could be many). When I shutdown the supervisor gracefully, it sends TERM signal to all child processes so they can cleanup in good way.On one system, I have no problem (the one running older Perl build - same version). When supervisor shutdown, all child and their child get SIG TERM and cleanup good.On this new system, I get this blocking state although the perl script is same.The problem:When I send SIG TERM to parent process, the child (perl) program does not receive the TERM signal so it cannot cleanup (close files and connections).psig <process-id> shows:TERM    blocked,caught  Perl_csighandler        0If I run the perl script from command line it works ok. psig showsTERM    caught  Perl_csighandler        0Does anyone know what this blocked state is? Why am I getting this state? I tried the same with an older build of same perl version and it worked without issues. Is there any library difference?How can I debug this issue?Perl Signal Handler code:Here is the code for registering and handling signalsmy $term = 0;$SIG{'TERM'} = 'signalHandler';sub signalHandler {    my ($sig) = @_;    if (!$writing) {        LogWrite(Signal $sig received, closing down now.\n);        closeDown(0);    } else {        # If writing to file, then close down later after write is complete.        LogWrite(Signal $sig received, closing down later.\n);        $term = $sig;    }}sub closeDown ($) {    my ($exit_code) = @_;    LogWrite(Exiting with code $exit_code.\n);    LogWrite(Closing opened files...\n);      closeLogFile();    exit($exit_code);}sub closeLogFile {    if ( fileno (LOGFILE))  { close(LOGFILE); }}
Perl program in Solaris shows blocked SIG TERM
solaris;perl;signals