From owner-cvs-all Sun Aug 29 16:48:33 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 512BB14C57; Sun, 29 Aug 1999 16:48:31 -0700 (PDT) (envelope-from obrien@FreeBSD.org) Received: (from obrien@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA34600; Sun, 29 Aug 1999 16:46:20 -0700 (PDT) (envelope-from obrien@FreeBSD.org) Message-Id: <199908292346.QAA34600@freefall.freebsd.org> From: "David E. O'Brien" Date: Sun, 29 Aug 1999 16:46:20 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/gcc pexecute.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk obrien 1999/08/29 16:46:20 PDT Modified files: contrib/gcc pexecute.c Log: Correct vfork()/exit() to vfork()/_exit(). Also return "1" rather than "-1". According to bde: -1 is unrepresentable. Exit statuses must be >= 0 and <= 255, at least if chars are 8 bits and shorts are 16 bits. This seems to only be documented indirectly in exit.2 by referring to wait.2. WEXITSTATUS() throws away all except the low 8 bits of the status returned by _exit(), and the kernel actually only stores 8 bits of it (if chars are 8 bits, etc.), so wait() can't return any more bits. Obtained from: rev 1.4 of contrib/gcc/gcc.c Revision Changes Path 1.2 +1 -1 src/contrib/gcc/pexecute.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message