| От | dom@happygiraffe.net (Dominic Mitchell) |
|---|---|
| Тема | Re: Should libpq set close-on-exec flag on its socket? |
| Дата | |
| Msg-id | 20041022115303.GA62269@ppe.happygiraffe.net обсуждение исходный текст |
| Ответ на | Should libpq set close-on-exec flag on its socket? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On Thu, Oct 21, 2004 at 02:10:48PM -0400, 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. 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? This is a very good idea. We've had problems with Perl programs that call other scripts (over an exec boundary) and end up with unnecessary DBD::Pg file handles hanging around. This would be good to prevent that. -Dom
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера