Re: [Patch] Create a new session in postmaster by calling setsid()
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>, Andres Freund
<andres@anarazel.de>, Paul Guo <pguo@pivotal.io>,
Andrew Gierth <andrew@tao11.riddles.org.uk>, pgsql-hackers@postgresql.org
Date: 2018-12-30T20:41:07Z
Lists: pgsql-hackers
Attachments
- pg_ctl-setsid-1.patch (text/x-patch) patch
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
Commits
-
Detach postmaster process from pg_ctl's session at server startup.
- bb24439cefea 12.0 landed
-
Remove silent_mode. You get the same functionality with "pg_ctl -l
- f7ea6beaf4ca 9.2.0 cited