Re: [HACKERS] Win32 WEXITSTATUS too

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [HACKERS] Win32 WEXITSTATUS too
Дата
Msg-id 45B65133.6080301@dunslane.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Win32 WEXITSTATUS too  ("Chuck McDevitt" <cmcdevitt@greenplum.com>)
Список pgsql-patches
Chuck McDevitt wrote:
> Win32 exception codes start with a two-bit severity indication.
> 00 means "success", so nothing is wrong.
> 01 is an "informational" messages.
> 10 is a "warning" message.
> 11 is an "error".
>
> That's why the common exception codes you see start with hex C0, as they
> are "errors".
>
> The rest of the top 16 bits are the "facility" that caused the error.
> Often not filled in.
>

Almost, AAUI. The next significant bit after the severity bits is a
custom flag - 0 indicates it is a MS exception, 1 that it's from a third
party. The remaining upper 13 bits are the facility.

cheers

andrew



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

Предыдущее
От: "Chuck McDevitt"
Дата:
Сообщение: Re: [HACKERS] Win32 WEXITSTATUS too
Следующее
От: "FAST PostgreSQL"
Дата:
Сообщение: Re: pg_get_domaindef