summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-02-28 12:50:17 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-02-28 12:50:17 +0100
commit45d1d31847dfc425410a107b66537e567c0d5637 (patch)
treeabd032eae3933f8ad533e962653d23f94a3e06b1 /sys/man
parent1d2ce3583ec377f16a1f801f624344de99bc9ddc (diff)
libthread: use devdup instead of mounting pipe to /mnt/temp for close-on-exec in procexec()
the namespace might be shared by other processes. instead, we create a anonymous pipe with pipe() and use devdup to open one end close-on-exec. this is shorter and avoids the race condition. do not touch Execargs after writing the error message as the process might be gone after the write. this was to manually close the fd which isnt neccesary as the kernel will do it for us on the following exit.
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/thread5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/man/2/thread b/sys/man/2/thread
index b06e31b96..3b93eef9e 100644
--- a/sys/man/2/thread
+++ b/sys/man/2/thread
@@ -356,11 +356,6 @@ can safely free it once they have
received the
.I cpid
response.
-Note that the mount point
-.B /mnt/temp
-must exist;
-.I procexec(l)
-mount pipes there.
.PP
.I Threadwaitchan
returns a channel of pointers to