Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!uunet.UU.NET!sef From: rstevens@noao.edu (Rich Stevens) Newsgroups: comp.std.unix Subject: POSIX.2 system() return values Message-ID: <126302@uunet.UU.NET> Date: 22 Mar 91 13:44:55 GMT Sender: usenet@uunet.UU.NET Organization: National Optical Astronomy Observatories, Tucson, AZ, USA Lines: 13 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 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. I see that SVR4 now returns -1 on an error (fork, exec, or wait error) while Reno still returns the exit status of 127. Is -1 a valid return value--that is, are -1 and the valid wait() and waitpid() exit statuses mutually exclusive? Rich Stevens (rstevens@noao.edu) Volume-Number: Volume 23, Number 17