Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 1996 17:08:56 -0700 (PDT)
From:      James Raynard <jraynard>
To:        CVS-committers, cvs-all, cvs-lib
Subject:   cvs commit:  src/lib/libc/stdlib system.3 system.c
Message-ID:  <199606050008.RAA24311@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jraynard    96/06/04 17:08:56

  Modified:    lib/libc/stdlib  system.3 system.c
  Log:
  Submitted by: (based on code in "Advanced Programming in the Unix Environment"
  by W.Richard Ste vens. EINTR handling suggested by bde@freebsd.org).
  
  Code cleanup:
  
  1. Add missing return type.
  2. Replace 'union wait' by int.
  3. Use Posix-style signal handling instead of signal().
  4. Use fork() instead of deprecated vfork().
  5. Block signals before fork()'ing, instead of after.
  6. Return -1 if fork() fails, instead of 0.
  7. Add EINTR handling for waitpid() call.
  
  Also add claim of Posix conformance to man page.
  
  Revision  Changes    Path
  1.3       +3 -0      src/lib/libc/stdlib/system.3
  1.2       +33 -18    src/lib/libc/stdlib/system.c



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