From owner-freebsd-questions Sun Apr 26 15:20:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA27019 for freebsd-questions-outgoing; Sun, 26 Apr 1998 15:12:09 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25281 for ; Sun, 26 Apr 1998 14:59:16 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.8.7/8.8.2) with SMTP id PAA18554; Sun, 26 Apr 1998 15:00:51 -0700 (PDT) Date: Sun, 26 Apr 1998 15:00:51 -0700 (PDT) From: Dan Busarow To: Geoffrey Robinson cc: questions@FreeBSD.ORG Subject: Re: Return Codes Multiplied by 256 In-Reply-To: <35438F8E.63B2CCBD@globalserve.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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