Re: [GENERAL] Catching server shutdown in C

2004-08-23 Thread Martijn van Oosterhout
On Mon, Aug 23, 2004 at 09:53:43AM +0100, Graeme Hinchliffe wrote: > 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

[GENERAL] Catching server shutdown in C

2004-08-23 Thread Graeme Hinchliffe
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