Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Apr 1998 15:00:51 -0700 (PDT)
From:      Dan Busarow <dan@dpcsys.com>
To:        Geoffrey Robinson <geoffr@globalserve.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Return Codes Multiplied by 256
Message-ID:  <Pine.BSF.3.96.980426145848.18485B-100000@java.dpcsys.com>
In-Reply-To: <35438F8E.63B2CCBD@globalserve.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 26 Apr 1998, Geoffrey Robinson wrote:
> If I divide the value returned by 256 I get one of the return codes I
> specified in my program but I'm afraid something may be wrong if I'm
> getting it back as a multiple of 256. Can somebody verify that this is
> supposed to happen, or not.

The returned status contains additional information in the high
order bits, the lowest 8 bits contain the return code.

man wait for details, you may want to use the WEXITSTATUS(status)
macro to get the return code.

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980426145848.18485B-100000>