|Pathologically Eclectic Rubbish Lister|
Capture alarm signalby vinoth.ree (Monsignor)
|on Sep 16, 2010 at 11:12 UTC||Need Help??|
vinoth.ree has asked for the
wisdom of the Perl Monks concerning the following question:
I have written a sample perl program to connect with the database within the time limit of 10 seconds, If is not get connected it should return connection timeout error message.
For this I am using the alarm signal, as belowtest.pl
The above code includes the Dbconn.pm module and connecting with the database with the given ip address, username and password, there may be a chance of database server down, at that time I should be getting the connection timeout, but it never comes out even after reaching the time out. Any possible way to capture the alarm signal on timeout.DbConn.pm