this is in preparation for implementing _Fork from POSIX-future, factored as a separate commit to improve readability of history.