Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster
Date
Msg-id CA+TgmoaaJcotUNCNVrsOvdcUY3FSKPsm6TegPuCOtD62hBEzuw@mail.gmail.com
Whole thread Raw
In response to Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Apr 16, 2014 at 12:35 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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?

I don't have time right at the moment, but maybe at some point, if
nobody else gets to it first.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster
Next
From: Magnus Hagander
Date:
Subject: Tracking replication slot "blockings"