Re: EINTR in ftruncate()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: EINTR in ftruncate()
Дата
Msg-id 2834561.1657812289@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: EINTR in ftruncate()  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> ... but now I'm wondering if we should be more defensive and possibly
> even save/restore the mask.

+1, sounds like a more future-proof solution.

> Originally I discounted that because I
> thought I had to go through PG_SETMASK for portability reasons, but on
> closer inspection, I don't see any reason not to use sigprocmask
> directly in Unix-only code.

Seems like the thing to do is to add a suitable operation to the
pqsignal.h API.  We could leave it unimplemented for now on Windows,
and then worry what to do if we ever need it in that context.

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: First draft of the PG 15 release notes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: EINTR in ftruncate()