Hiya
        I am writing a daemon in C which monitors a table stored in postgres. 
I would ideally like the daemon to be able to withstand things such as
the db connection going away or the db being shutdown, and simply keep
trying to connect rather than just fall on it's face.

        Is there a way that I can catch a server shutdown/connection loss
cleanly?  I did a quick search of the mailling list but didn't see
anything.  

Thanks for your help

-- 
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main  : 0845 058 9000
Fax   : 0845 058 9005



---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to