Re: File descriptors in exec'd subprocesses

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: File descriptors in exec'd subprocesses
Date: 2023-02-20 12:13:57
Message-ID: CA+hUKG+uRE3O88DrqSKf5rc7t4qVt44_mA+cVcJpcUDXiOJaig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I had missed one: the "watch" end of the postmaster pipe also needs FD_CLOEXEC.

Attachment Content-Type Size
v3-0001-Don-t-leak-descriptors-into-subprograms.patch text/x-patch 6.4 KB
v3-0002-Use-accept4-to-accept-connections-where-available.patch text/x-patch 5.7 KB
v3-0003-Use-newer-client-socket-options-where-available.patch text/x-patch 2.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message 32686647 2023-02-20 12:17:07 I wish libpq add get_unresolv_host() and set_unresolv_host_ip() function
Previous Message Melih Mutlu 2023-02-20 12:06:27 Re: Allow logical replication to copy tables in binary format