Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED - Mailing list pgsql-hackers

From Andrew Chernow
Subject Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED
Date
Msg-id 48F61FE9.5070904@esilo.com
Whole thread Raw
In response to Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED
List pgsql-hackers
Tom Lane wrote:
> Does fork/exec preserve lock ownership on Windows?
>  

Not to my knowledge.  On windows, there is only CreateProcess 
(http://msdn.microsoft.com/en-us/library/ms682425.aspx).  That doesn't 
resemble the behavior of fork or exec at all.  Basically, there is no 
fork, windows favors threading models.  The only thing inheritable are 
handles, which doesn't include locked portions of a file.

The LockFileEx docs state:

"If a process terminates with a portion of a file locked or closes a 
file that has outstanding locks, the locks are unlocked by the operating 
system."

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED
Next
From: Tom Lane
Date:
Subject: Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED