Re: [HACKERS] Should we standardize on a type for signal handler flags?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] Should we standardize on a type for signal handler flags?
Дата
Msg-id CAB7nPqQrC0cLVmBRofCXfCP5tTVU3hCGqBnGsVVoLXCUx7M11Q@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Should we standardize on a type for signal handler flags?  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Mon, Jun 5, 2017 at 8:00 AM, Andres Freund <andres@anarazel.de> wrote:
> At the moment a number of flag variables set in signal handlers have
> 'volatile bool' as type, others have 'volatile sig_atomic_t'.  That's
> kinda confusing.   I think either is safe, but I think we should
> standardize one of them.

sig_atomic_t's definition includes a reference to signals, so I would
vote for using it instead of bool.
-- 
Michael



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: [HACKERS] Should we standardize on a type for signal handler flags?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Should we standardize on a type for signal handler flags?