Re: Preventing abort() and exit() calls in libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Preventing abort() and exit() calls in libpq
Дата
Msg-id 151972.1624888456@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Preventing abort() and exit() calls in libpq  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> A possible trick is to add ccp flags such as: -Dexit=exit_BAD 
> -Dabort=abort_BAD.

Not really going to work, at least not without a lot of fragile
kluges, because the main problem here is to prevent libpq from
*indirectly* calling those functions via stuff it imports from
src/port or src/common.

It's possible that we could make it work by generalizing the
policy that "libpq may not call abort/exit" into "no PG shlib
may call abort/exit", and then apply the cpp #defines while
compiling the xxx_shlib.o variants of those files.  This does
not seem more attractive than what I proposed, though.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Preventing abort() and exit() calls in libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unbounded %s in sscanf