Re: BUG #4602: child processes inherit database socket - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4602: child processes inherit database socket
Date
Msg-id 7740.1231247714@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4602: child processes inherit database socket  ("Jasen Betts" <jasen@treshna.com>)
List pgsql-bugs
"Jasen Betts" <jasen@treshna.com> writes:
> libpq creates sockets to the server without CLOEXEC.

Only if you have a very broken build; see fe-connect.c around line 1160
(in CVS HEAD, but the fcntl() has been there for many years).

Perhaps what you really meant to say is "for some reason the fcntl
call isn't getting compiled in on my platform", but with no platform
details it's impossible for us to do anything about that.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Jasen Betts"
Date:
Subject: BUG #4602: child processes inherit database socket
Next
From: val
Date:
Subject: Re: PANIC: failed to re-find parent key in "100924" for split pages 1606/1673