Patch for not going beyond NOFILE system limit

Поиск
Список
Период
Сортировка
От Martin Pitt
Тема Patch for not going beyond NOFILE system limit
Дата
Msg-id 20040517122429.GA2909@donald.intranet.fbn-dd.de
обсуждение исходный текст
Ответы Re: Patch for not going beyond NOFILE system limit  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Hi PostgreSQL developers!

Jacek Drobiecki recently sent me a patch which stops postgresql to
actively violate the system limit of maximum open files
(RLIMIT_NOFILE) in src/backend/storage/file/fd.c, function
count_usable_fds().

This avoids irritating kernel logs (if system overstep violations are
enabled) and also the grsecurity alert when starting PostgreSQL.

Can you please adopt this patch?

Currently the modifications are only enabled when postgresql is
compiled with -DCHECK_RLIMIT_NOFILE. Of course you can also use it
unconditionally.

Thanks for considering and have a nice day!

Martin

--
Martin Pitt                 Debian GNU/Linux Developer
martin@piware.de                      mpitt@debian.org
http://www.piware.de             http://www.debian.org

Вложения

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

Предыдущее
От: Martin Pitt
Дата:
Сообщение: Fwd: Bug#249036: postgresql: zero bytes cannot be entered in string literal, not even with \000 notation
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Fwd: Bug#249036: postgresql: zero bytes cannot be entered