plan9fox/sys
cinap_lenrek 45d1d31847 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.
2015-02-28 12:50:17 +01:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: My recent incompetence is humbling. I should quit the industry. 2015-02-25 19:22:47 -05:00
include bio: add Bfdopen() from plan9port 2014-12-14 20:21:42 +01:00
lib leak: report alloc size mismatch 2015-02-26 22:33:03 +01:00
man libthread: use devdup instead of mounting pipe to /mnt/temp for close-on-exec in procexec() 2015-02-28 12:50:17 +01:00
src libthread: use devdup instead of mounting pipe to /mnt/temp for close-on-exec in procexec() 2015-02-28 12:50:17 +01:00