On Thursday 20 September 2001 11:53 am, William A. Rowe, Jr. wrote:
> IMHO, these discrepancies should be hidden by our API.  E.g. we aught to
> provide both an apr_status_t (with the return results matched up across
> platforms, and added to our APR_statuses lists) and the processes' exit
> code.
>
> APR_SUCCESS would mean the process _has_ terminated, here's the exit code
> we can share with you.  IMHO exit code is undefined for all other results.

Our API already creates APR_CHILD_DONE and APR_CHILD_NOTDONE.  These
are status codes, which is why APR_SUCCESS doesn't make sense here.  There is
no success or failure, just status.

Ryan

>
> Bill
>
>
> ----- Original Message -----
> From: "Bill Tutt" <[EMAIL PROTECTED]>
> To: "'Kevin Pilch-Bisson'" <[EMAIL PROTECTED]>; <[email protected]>
> Sent: Thursday, September 20, 2001 1:26 PM
> Subject: RE: apr_proc_wait status codes.
>
> > That would seem to make lots of sense.
> >
> > Bill
> >
> > "Though we are not now that strength that in old days moved Earth and
> > Heaven, that which we are we are; One equal temper of heroic hearts made
> > weak by time and fate but strong in will to strive, to seek, to find,
> > and not to yield." -- Tennyson
> >
> >
> >
> > -----Original Message-----
> > From: Kevin Pilch-Bisson [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 20, 2001 7:50 AM
> > To: [email protected]
> > Subject: apr_proc_wait status codes.
> >
> >
> > Hi all,
> >
> > I'm the one sort of reponsible for asking for return codes in
> > apr_proc_wait (and thanks for how quickly they were added), but now I am
> > concerned about their portability.
> >
> > My MSDN page for GetExitCodeProcess says it retrurns either
> > STILL_ACTIVE or the return code for the process.  Meanwhile my linux
> > waitpid man page says that the status code must be acessed using
> > WIFEXITED, WEXITSTATUS, etc macros.
> >
> > Perhaps we also need some APR_PROC_STATUS macros?
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Kevin Pilch-Bisson                    http://www.pilch-bisson.net
> >      "Historically speaking, the presences of wheels in Unix
> >      has never precluded their reinvention." - Larry Wall
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 

______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to