Re: Should libpq set close-on-exec flag on its socket?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Should libpq set close-on-exec flag on its socket?
Дата
Msg-id 23213.1098388399@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Should libpq set close-on-exec flag on its socket?  (Dennis Bjorklund <db@zigo.dhs.org>)
Ответы Re: Should libpq set close-on-exec flag on its socket?  (Kevin Brown <kevin@sysexperts.com>)
Список pgsql-hackers
Dennis Bjorklund <db@zigo.dhs.org> writes:
> On Thu, 21 Oct 2004, Tom Lane wrote:
>> It was suggested to me off-list that libpq should do
>> "fcntl(fd, F_SETFD, FD_CLOEXEC)" on the socket connecting to the server.
>> This would prevent any child program from accidentally or maliciously
>> interfering with the connection.

> Either way that the lib sets it, the client can alter the setting itself
> by issuing a new SETFD command.

That's a fair point, and certainly passing it down to the child
intentionally wouldn't be a common case.  I'll put the change in.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dennis Bjorklund
Дата:
Сообщение: Re: Should libpq set close-on-exec flag on its socket?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: plans for bitmap indexes?