Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 16:46:20 -0700 (PDT)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/contrib/gcc pexecute.c
Message-ID:  <199908292346.QAA34600@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908292346.QAA34600>