Skip Menu |

This queue is for tickets about the junoscript-perl CPAN distribution.

Report information
The Basics
Id: 32246
Status: new
Priority: 0/
Queue: junoscript-perl

People
Owner: Nobody in particular
Requestors: ssinyagin [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 6.4I0
Fixed in: (no value)



Subject: problems with JUNOS::Access signal handling
hello, I'm building a new open-source software for backbone topology discovery, and I utilize your JUNOS Perl package available at CPAN. JUNOS::Access module, line 315, redefines the signal handlers for the parent process: # If something bad happens kill this process off... $SIG{INT} = $SIG{__DIE__} = $SIG{HUP} = $SIG{TERM} = sub { kill 9, $pid; exit }; This is a bad practice, and it imposes difficulties in troubleshooting: when something goes wrong, the process exits before it even has a chance to print the error message -- for example, in case of Perl errors. In my case, that was referring to an object from undefined value. Besides, signal handling is definitely not a job of a library module. The calling program should take care of the signals itself. Please remove these lines from the code and update the CPAN repository. If you're interested, I will let you know about the project as soon as it's published at SF.net. thanks, stanislav