[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect return code on vms...

From: Derek R. Price
Subject: Re: incorrect return code on vms...
Date: Fri, 01 Dec 2000 14:18:26 -0500

Larry Jones wrote:

> Derek R. Price writes:
> There isn't any.  I wasn't arguing for or against that change, just
> explaining why things are the way they are.
> > We're talking about a few lines in, maybe one
> > in acconfig.h, a line in system.h, and a single line in main.  I'll do
> > the work, or what Donald hasn't done already.
> Remember that autoconf only works on Unix-like systems.  I don't think
> that's a big problem, but if you're going to have multiple exit
> statuses, you should probably #define them in such a way that they can
> be overridden in a system-dependent way.

Is there any reason I shouldn't have autoconf define
NONBINARY_EXIT_FAILURE or some such and then in cvs.h, if that isn't defined
use the EXIT_FAILURE defined in <stdlib.h>?  It doesn't seem to be the usual
way of overriding system specific values, but as long as it is done before
system.h is sourced or better yet only done '#ifndef EXIT_FAILURE',
EXIT_FAILURE could still be overridden on a system specific basis when
autoconf didn't work.

> > P.S.  run.c already seems to non-portably _exit() with bash's 127 when
> > it can't exec a program.
> Like I said, CVS isn't quite there yet.

And refreshing my memory, run.c is one of the source files that tends to get
overridden on a system specific basis.


Derek Price                      CVS Solutions Architect ( )
mailto:address@hidden     OpenAvenue ( )
Shake off all the fears of servile prejudices, under which weak minds are
servilely crouched.  Fix reason firmly in her seat, and call on her tribunal
for every fact, every opinion.  Question with boldness even the existence of a
God; because, if there be one, he must more approve of the homage of reason
than that of blindfolded fear.

                -Thomas Jefferson [letter to Peter Carr, Aug. 10, 1787]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]