sigtest.pl - test for safe/unsafe signal handling
sigtest.pl SIGNAME SAFE|UNSAFE # (SIGNAME is a standard signal - default is USR1) # (SAFE will use Net::Server::SIG, UNSAFE uses \$SIG{} - default is SAFE) # If the child isn't saying anything, the test is invalid. # If the child dies, look for a core file. # The process will run until it dies or you kill it
Recent versions of Perl (5.8 ish) have much better signal handling so the safe signal handling may not be necessary. But on older versions of Perl the safe signal handling was necessary. It still doesn't hurt to use some of the safer practices on newer Perls.
To install Net::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Server
CPAN shell
perl -MCPAN -e shell install Net::Server
For more information on module installation, please visit the detailed CPAN module installation guide.