From owner-cvs-lib Tue Jun 4 17:09:04 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA24326 for cvs-lib-outgoing; Tue, 4 Jun 1996 17:09:04 -0700 (PDT) Received: (from jraynard@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA24311; Tue, 4 Jun 1996 17:08:56 -0700 (PDT) Date: Tue, 4 Jun 1996 17:08:56 -0700 (PDT) From: James Raynard Message-Id: <199606050008.RAA24311@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/stdlib system.3 system.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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