🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #794

Re: POSIX.2 system() return values

#794
From: David A Willcox
Date: Mon, 25 Mar 1991 16:07
33 lines
1989 bytes
Submitted-by: willcox@urbana.mcd.mot.com (David A Willcox)

rstevens@noao.edu (Rich Stevens) writes:

>Submitted-by: rstevens@noao.edu (Rich Stevens)

>Does anyone know the current draft status of POSIX.2 with regard to
>the system() function and its return code.  

>From POSIX.2 Draft 11 (unchanged for several drafts):

    B.3.1.3 Returns

    If command is NULL, the system() function shall return nonzero.

    If comamnd is not NULL, the system() function shall return the
    termination status of the command language interpreter in the format
    specified by the waitpid() function in POSIX.1.  The termination status
    of the c.l.i. is as specified by the sh utility, except that if some
    error prevents the c.l.i. from executing after the child process is
    created, the return value from system() shall be as of the c.l.i.
    had terminated using exit(127) or _exit(127).  If a child process
    cannot be created, or if the terminaton status of the c.l.i. cannot
    be obtained, system() shall return -1 and set errno to indicate the
    error.

David A. Willcox		"Just say 'NO' to universal drug testing"
Motorola TSD - Urbana		UUCP: ...!uiucuxc!udc!willcox
1101 E. University Ave.		INET: willcox@urbana.mcd.mot.com
Urbana, IL 61801		FONE: 217-384-8534


Volume-Number: Volume 23, Number 19
Technical Details
Message-ID: <126481@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!uunet.UU.NET!sef
References: <126302@uunet.UU.NET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!uunet.UU.NET!sef
From: willcox@urbana.mcd.mot.com (David A Willcox)
Newsgroups: comp.std.unix
Subject: Re: POSIX.2 system() return values
Message-ID: <126481@uunet.UU.NET>
Date: 25 Mar 91 16:07:54 GMT
References: <126302@uunet.UU.NET>
Sender: usenet@uunet.UU.NET
Organization: Motorola Computer Group, Urbana Design Center
Lines: 33
Approved: sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)
Nntp-Posting-Host: uunet.uu.net
X-Submissions: std-unix@uunet.uu.net
Originator: sef@uunet.UU.NET