Re: [HACKERS] Win32 WEXITSTATUS too

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Takayuki Tsunakawa <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Subject: Re: [HACKERS] Win32 WEXITSTATUS too
Date: 2007-01-23 15:11:58
Message-ID: 200701231511.l0NFBwF02429@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Magnus Hagander wrote:
> > > I think that's incorrect information to the user :-(
> > > If the child terminates with exit(1), we will then say "child process
> > > was terminated by exception 1. This seems to be a bug", which is clearly
> > > not true.
> > >
> > > Unless you know a sure way of determining if the exitcode is a normal
> > > exitcode or an exception code.
> >
> > Current CVS believes values >= 0x100 are non-exit() terminations.
>
> Why does it do that :-) That's clearly wrong. There are plenty of
> exitcodes > 0x100 that aren't exceptions.

Please read include/port/win32.h comment section on this and then reply.
We only care about non-exit() exits.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message org 2007-01-23 15:15:18 Re: STOP all user access except for admin for a few minutes?
Previous Message Brian Hurt 2007-01-23 15:10:41 tripping an assert in 8.1.6

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2007-01-23 15:24:04 Re: [HACKERS] Win32 WEXITSTATUS too
Previous Message Magnus Hagander 2007-01-23 15:07:43 Re: [HACKERS] Win32 WEXITSTATUS too