Re: Win32 WEXITSTATUS too simplistic - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Win32 WEXITSTATUS too simplistic
Date
Msg-id 2104.24.211.165.134.1167172032.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: Win32 WEXITSTATUS too simplistic  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> "Andrew Dunstan" <andrew@dunslane.net> writes:
>> Tom Lane wrote:
>>> Anyone want to run down what we should really
>>> be using instead of the above macros?
>
>> The exit code is apparently what is reported from GetExitCodeProcess().
>> For info on that see
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getexitcodeprocess.asp
>
>> I think we are possibly seeing the third case, i.e. the code from an
>> unhandled exception.  I haven't managed to find an API to handle them
>> though ...
>
> Right ... but I don't think we want to "handle the exception".  The
> right question to be asking is "what is the encoding of these 'exception
> values' it's talking about?"
>


Yes, sorry for my loose expression. That's what I meant - I didn't find an
API that would translate the exception values.

cheers

andrew



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Win32 WEXITSTATUS too simplistic
Next
From: Tom Lane
Date:
Subject: Re: Rare corruption of pg_class index