in reply to Using Alarms for MySQL DB
Please wrap code in <code> or <c> tags. Writeup Formatting Tips
You did not mention what OS this is running but it won't work as written on Windows: http://perldoc.perl.org/perlport.html#alarm.
On other operating systems, it's also possible that safe signals is preventing it from working: http://perldoc.perl.org/perlipc.html#Deferred-Signals-(Safe-Signals).
Update: You might want to read https://metacpan.org/pod/DBI#Signal-Handling-and-Canceling-Operations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Alarms for MySQL DB (unsafe)
by tye (Sage) on May 26, 2016 at 22:28 UTC |