Re: [Patch] Create a new session in postmaster by calling setsid() - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: [Patch] Create a new session in postmaster by calling setsid()
Date
Msg-id 16028522-316c-ec71-c065-91a1e1e004a2@iki.fi
Whole thread Raw
In response to Re: [Patch] Create a new session in postmaster by calling setsid()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: [Patch] Create a new session in postmaster by calling setsid()
List pgsql-hackers
On 30/12/2018 21:59, Heikki Linnakangas wrote:
> On 28/12/2018 22:13, Tom Lane wrote:
>> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>>> Another idea would be to call setsid() in pg_ctl, after forking
>>> postmaster, like in Paul's original patch. That solves 1. and 2. To
>>> still do 3., add a signal handler for SIGINT in pg_ctl, which forwards
>>> the SIGINT to the postmaster process. Thoughts on that?
>>
>> That seems like a nice idea.
> 
> Here's a patch to implement that.

Forgot attachment, here it is.

- Heikki

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: PostgreSQL vs SQL/XML Standards
Next
From: Tom Lane
Date:
Subject: Re: [Patch] Create a new session in postmaster by calling setsid()