Re: BUG #19095: Test if function exit() is used fail when linked static

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #19095: Test if function exit() is used fail when linked static
Дата
Msg-id 2305435.1762929527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #19095: Test if function exit() is used fail when linked static  (BharatDB <bharatdbpg@gmail.com>)
Ответы Re: BUG #19095: Test if function exit() is used fail when linked static
Список pgsql-bugs
BharatDB <bharatdbpg@gmail.com> writes:
>> [1]Changing the grep pattern to match the exact symbol ('grep -x exit')
>> prevents such false positives.

We might as well remove the test entirely as do that; it would
fail to detect "_exit" for example.

Additionally, I don't have a lot of faith in "grep -x" being
universally portable.  POSIX 2018 does specify that switch, but
it mentions that it is "historically available only with fgrep".

Personally I'm okay with whitelisting pthread_exit() as
Torsten suggested.

BTW, it looks like libpq's meson.build is missing this check.

            regards, tom lane



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