info-cvs
[Top][All Lists]
Advanced

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

Re: cvs exit status


From: Greg A. Woods
Subject: Re: cvs exit status
Date: Thu, 11 Oct 2001 13:50:13 -0400 (EDT)

[ On Wednesday, October 10, 2001 at 14:43:14 (-0700), Paul Sander wrote: ]
> Subject: Re: cvs exit status
>
> What happens on a Unix system when the exit status exceeds 127?  It overflows.

Well, actually it'll depend on a number of factors.  I suspect the
result is literally "undefined" from the standards point of view.  In
many systems I suspect it will be confused with a signal having been
delivered.  In all cases I suspect there's only one chance in 127 of the
overflow resulting in an apparent success.  I'm too lazy to write the
trivial test case though....   :-)

> An incremented exit status can (and does) report success in the presence of
> failures.

What a bogus worry!  Do you have an example of an actual code path in
CVS which can easily cause such an overflow?

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <address@hidden>     <address@hidden>
Planix, Inc. <address@hidden>;   Secrets of the Weird <address@hidden>



reply via email to

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