Re: REPOST: InitDB Failure on install

Andreas Pflug <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
Tom Lane wrote:
> "Magnus Hagander" <[email protected]> writes:
> 
>>                /* Unable to get shared memory */
>>+               errno = GetLastError();
> 
> 
> Aren't you going to need a mapping function to convert Windows error
> codes to errno numbers?  Don't tell me Microsoft was smart enough to
> make them the same ;-)

How about the idea to set errno to a special value after all non-posix 
calls, which makes ereport examine/preserve GetLastError() instead?

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.