Re: [HACKERS] [PATCHES] fork/exec patch - Mailing list pgsql-hackers-win32

From Tom Lane
Subject Re: [HACKERS] [PATCHES] fork/exec patch
Date
Msg-id 4351.1071679544@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] [PATCHES] fork/exec patch  ("Magnus Hagander" <mha@sollentuna.net>)
List 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 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: [HACKERS] [PATCHES] fork/exec patch
Next
From: "Magnus Hagander"
Date:
Subject: Re: [HACKERS] [PATCHES] fork/exec patch