Changeset 310
- Timestamp:
- 03/09/06 11:14:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/CustIDCK.pm
r156 r310 15 15 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); 16 16 use DBI; 17 18 # Supposed to provide cross-Perl-version signal handling. 19 # Not part of stock Debian Perl, use dh-make-perl or just 20 # install straight from CPAN. 21 # Not part of stock RHEL/CentOS, use cpan2perl, cpanflute, 22 # or just install straight from CPAN. 23 use Sys::SigAction; 17 24 18 25 $VERSION = 1.00; … … 36 43 my $dbh; 37 44 eval { 38 local $SIG{ALRM} = sub { die "failed connection to newbilling!!" }; 45 my $h = Sys::SigAction::set_sig_handler( 'ALRM', 46 sub { die "failed connection to apex!!"; } ); 47 39 48 alarm 3; # 3-second timeout. This may be too aggressive. 40 49
Note:
See TracChangeset
for help on using the changeset viewer.