aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorArkadiusz Drabczyk <arkadiusz@drabczyk.org>2018-09-18 23:59:17 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-11-24 07:59:58 +0100
commit80d274454b6afa80f024277c8d2e4135595aed29 (patch)
treea1b2a450f374875af51f44098b0ab51d47080e8f /man3
parent2fc546f9bfa2987c15ef4ac100fafe74d9e7322f (diff)
downloadman-pages-80d274454b6afa80f024277c8d2e4135595aed29.tar.gz
system.3: Mention that 'errno' is set on error
Corresponding system.3p already mentions that. Tested with glibc and musl. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/system.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/system.3 b/man3/system.3
index 19a4d8c201..e31ceb4355 100644
--- a/man3/system.3
+++ b/man3/system.3
@@ -86,7 +86,7 @@ or 0 if no shell is available.
.IP *
If a child process could not be created,
or its status could not be retrieved,
-the return value is \-1.
+the return value is \-1 and errno is set to indicate the error.
.IP *
If a shell could not be executed in the child process,
then the return value is as though the child shell terminated by calling