@ariadne @jamesh we added CLOFORK in Solaris 11.3, almost a decade after adding posix_spawn and converting system & popen to use it in Solaris 10. At the time though, posix_spawn was implemented in Solaris libc as a wrapper around vfork and execve - it was later converted to a become a new system call in 11.4.
As noted in the thread at https://fosstodon.org/@alanc/112901142900834574 the person who implemented CLOFORK for us doesn't remember discussion of what to do across exec calls at the time.