Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster
Дата
Msg-id 28271.1397666129@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Feb 17, 2014 at 8:26 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Alternatively, we could do what the comments in pg_ctl have long thought
>> desirable, namely get rid of use of system() in favor of fork()/exec().
>> With that, pg_ctl could do a setsid() inside the child process.

> I like this last approach.

Me too, but it looked like a less-than-trivial bit of work to me
(else I might just have gone and done it).  Are you volunteering?
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: bgworker crashed or not?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster