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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Should libpq set close-on-exec flag on its socket?
Дата
Msg-id 18172.1098382248@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?  (dom@happygiraffe.net (Dominic Mitchell))
Список pgsql-hackers
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.  It would also prevent people from
deliberately turning over a connection to a child; I'm not sure that
that's useful, but I'm not sure it's useless either.

Comments, opinions?
        regards, tom lane


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

Предыдущее
От:
Дата:
Сообщение: Re: Re: Why frequently updated tables are an issue
Следующее
От: Dennis Bjorklund
Дата:
Сообщение: Re: Should libpq set close-on-exec flag on its socket?