Re: [HACKERS] [PATCHES] fork/exec patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] [PATCHES] fork/exec patch
Дата
Msg-id 4351.1071679544@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCHES] fork/exec patch  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-hackers-win32
"Magnus Hagander" <mha@sollentuna.net> writes:
>>> An option would be to SuspendThread() on the main thread, which
>>> freezes it completely durnig the execution of the signal. If
>>> necessary, are we safe against that?
>>
>> Why would that be a problem?

> In a nutshell: If the main thread holds a lock on something we need
> (such as the heap), we just shot ourselves in the foot.

Hmm.  Sounds like SuspendThread is not a workable option at all.

            regards, tom lane

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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [HACKERS] [PATCHES] fork/exec patch
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [HACKERS] [PATCHES] fork/exec patch