Page MenuHomeFreeBSD

Add posix_spawnattr_get/setexecfd_np(3)
ClosedPublic

Authored by kib on Sat, Jan 24, 10:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 3, 2:01 PM
Unknown Object (File)
Mon, Feb 2, 3:22 AM
Unknown Object (File)
Fri, Jan 30, 11:32 PM
Unknown Object (File)
Mon, Jan 26, 8:12 PM
Unknown Object (File)
Mon, Jan 26, 11:29 AM
Unknown Object (File)
Mon, Jan 26, 11:23 AM
Unknown Object (File)
Mon, Jan 26, 9:52 AM
Unknown Object (File)
Mon, Jan 26, 9:20 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Sat, Jan 24, 10:24 PM

Some fixes, mostly to the man page typos.
Also accept that spawnattrs might be NULL.

lib/libc/gen/posix_spawnattr_getexecfd_np.3
14

posix_spawn.3 should xref this page in the SEE ALSO section.

46
47
48

What's wrong with having O_CLOEXEC set? Doesn't fexecve() work in this case? I didn't test it, but I see that do_execve() acquires a ref on the textvp before calling fdcloseexec().

Certainly O_CLOFORK must not be set.

52
85
kib marked 6 inline comments as done.Sun, Jan 25, 4:18 PM
kib added inline comments.
lib/libc/gen/posix_spawnattr_getexecfd_np.3
48

Of course it is CLOFORK. My bad, I had some discussion about some patch with the CLOFORK author simultaneously and it obviously get mixed.

kib marked an inline comment as done.

Man page fixes

This revision is now accepted and ready to land.Sun, Jan 25, 5:16 PM