summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/posix_spawn.3
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2012-04-11 09:38:45 +0000
committerespie <espie@openbsd.org>2012-04-11 09:38:45 +0000
commitf6a74c88efa112ca63a63cdd919e0c4488a94d17 (patch)
tree72d34510d772bfd4340536eed833970180f7c475 /lib/libc/gen/posix_spawn.3
parentfix install to cope with 0-sized mmap now returning EINVAL. (diff)
downloadwireguard-openbsd-f6a74c88efa112ca63a63cdd919e0c4488a94d17.tar.xz
wireguard-openbsd-f6a74c88efa112ca63a63cdd919e0c4488a94d17.zip
fuss with details
Diffstat (limited to 'lib/libc/gen/posix_spawn.3')
-rw-r--r--lib/libc/gen/posix_spawn.313
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/libc/gen/posix_spawn.3 b/lib/libc/gen/posix_spawn.3
index fe3c8fbc046..38843f411b7 100644
--- a/lib/libc/gen/posix_spawn.3
+++ b/lib/libc/gen/posix_spawn.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: posix_spawn.3,v 1.3 2012/04/11 08:11:30 espie Exp $
+.\" $OpenBSD: posix_spawn.3,v 1.4 2012/04/11 09:38:45 espie Exp $
.\"
.\" Copyright (c) 2012 Marc Espie <espie@openbsd.org>
.\"
@@ -88,13 +88,7 @@ is NULL, default values are used: caught signals in the parent
process are set to the default value in the child process, and ignored signals
stay ignored.
.Pp
-See
-.Xr posix_spawnattr_init 3 ,
.Xr posix_spawnattr_setflags 3 ,
-.Xr posix_spawnattr_setpgroup 3 ,
-.Xr posix_spawnattr_setschedparam 3 ,
-.Xr posix_spawnattr_setsigdefault 3 ,
-.Xr posix_spawnattr_setsigmask 3
for attribute details.
.Sh RETURN VALUES
Upon succesful completion, both functions return 0.
@@ -107,7 +101,7 @@ gets set to the pid of the newly created child process.
In case of an error, both functions may return
.Fn fork
or
-.Nm exec
+.Fn exec
return values and set
.Ev errno
accordingly.
@@ -121,7 +115,8 @@ with exit status 127.
.Xr fork 2 ,
.Xr posix_spawn_file_actions_init 3 ,
.Xr posix_spawn_file_actions_addclose 3 ,
-.Xr posix_spawnattr_init 3 .
+.Xr posix_spawnattr_init 3 ,
+.Xr posix_spawnattr_setflags 3
.Sh STANDARDS
Both functions conform to
.St -p1003.1-2001 .