Re: jdbc and unix signals

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: jdbc and unix signals
Дата
Msg-id 3B4CC2FC.3BF56CEA@selectacast.net
обсуждение исходный текст
Ответ на jdbc and unix signals  (Nikk Anderson <Nikk.Anderson@parallel.ltd.uk>)
Список pgsql-jdbc
Run your program using nohup.  In general java programs don't get unix
signals.

> Nikk Anderson wrote:
>
> Hi,
>
> I am using the postgres jdbc which was compiled on Solaris as part of
> the postgres 7.1 installation.
>
> I have a program which runs as a deamon, and connects to postgres for
> data.  As it is running as a deamon, we have included some signal
> handling routines.  We are trying to trap HUP (kill -1)  signals, so
> that the process will not exit when that signal is sent.
>
> If the program uses the jdbc driver, then the program can not catch
> the HUP signal - however, if we do NOT use the jdbc at all, then we
> can trap the signal and deal with it as we wish.
>
> Does the postgres driver catch the signals, thus overiding my attempts
> to catch them?
>
> Any ideas
>
> Thanks
>
> Nikk Anderson

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: can't write a BLOB, 7.1.2
Следующее
От: Joe Shevland
Дата:
Сообщение: RE: can't write a BLOB, 7.1.2