Clean up some signal usage mainly related to Windows

Поиск
Список
Период
Сортировка
От Tristan Partin
Тема Clean up some signal usage mainly related to Windows
Дата
Msg-id CTVDKVZCCVSY.1XQ87UL50KQRD@gonk
обсуждение исходный текст
Ответы Re: Clean up some signal usage mainly related to Windows  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
Windows has support for some signals[0], like SIGTERM and SIGINT. SIGINT
must be handled with care on Windows since it is handled in a separate
thread. SIGTERM however can be handled in a similar way to UNIX-like
systems. I audited a few pqsignal calls that were blocked by WIN32 to
see if they could become used, and made some adjustments. Definitely
hoping for someone with more Windows knowledge to audit this.

In addition, I found that signal_cleanup() in pg_test_fsync.c was not
using signal-safe functions, so I went ahead and fixed those to use
their signal-safe equivalents.

[0]: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/signal

--
Tristan Partin
Neon (https://neon.tech)

Вложения

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

Предыдущее
От: Matthias van de Meent
Дата:
Сообщение: Re: Disabling Heap-Only Tuples
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [PoC] Federated Authn/z with OAUTHBEARER