aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.3
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>1999-01-27 03:54:09 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>1999-01-27 03:54:09 +0000
commit221188c6cb6227fcbc4124885083e8196cc84f22 (patch)
tree11fe7bc6b2c459b8f9b044cf8322a3f73b060b7c /lib/libc/stdlib/system.3
parentb6c8511860651a2313da286d8ada8a2c7d498120 (diff)
downloadsrc-221188c6cb6227fcbc4124885083e8196cc84f22.tar.gz
src-221188c6cb6227fcbc4124885083e8196cc84f22.zip
Clarify format of exit status code. Note when a return code of -1 can
be expected. PR: docs/9701 Submitted by: Marc van Kempen <marc@bowtie.nl>
Notes
Notes: svn path=/head/; revision=43265
Diffstat (limited to 'lib/libc/stdlib/system.3')
-rw-r--r--lib/libc/stdlib/system.312
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/stdlib/system.3 b/lib/libc/stdlib/system.3
index 9b82e7b9e775..fa7b8d23886e 100644
--- a/lib/libc/stdlib/system.3
+++ b/lib/libc/stdlib/system.3
@@ -75,15 +75,19 @@ is available, and zero if it is not.
The
.Fn system
function
-returns the exit status of the shell, or \-1 if the
-.Xr wait 2
-for the shell failed.
+returns the exit status of the shell as returned by
+.Xr waitpid 2 ,
+or \-1 if an error occurred when invoking
+.Xr fork 2
+or
+.Xr waitpid 2 .
A return value of 127 means the execution of the shell
failed.
.Sh SEE ALSO
.Xr sh 1 ,
.Xr execve 2 ,
-.Xr wait 2 ,
+.Xr fork 2 ,
+.Xr waitpid 2 ,
.Xr popen 3
.Sh STANDARDS
The