Re: Replacing abort() with __builtin_trap()?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Replacing abort() with __builtin_trap()?
Дата
Msg-id 183981.1688320553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Replacing abort() with __builtin_trap()?  (Andres Freund <andres@anarazel.de>)
Ответы Re: Replacing abort() with __builtin_trap()?
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I'd like to propose that we do a configure test for __builtin_trap() and use
> it, if available, before the abort() in ExceptionalCondition(). Perhaps also
> for PANIC, but it's not as clear to me whether we should.

Does that still result in the same process exit signal being reported to
the postmaster?  The GCC manual makes it sound like the reported signal
could be platform-dependent, which'd be kind of confusing.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Replacing abort() with __builtin_trap()?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Replacing abort() with __builtin_trap()?