in reply to Capture alarm signal

Postgresql and maybe other DBD modules already support setting timeouts for establishing the connection. They could be using the process alarm timer internally, effectively disabling the one set on your code.