]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35823: Allow setsid() after vfork() on Linux. (GH-22945)
authorGregory P. Smith <greg@krypto.org>
Sat, 24 Oct 2020 19:07:35 +0000 (12:07 -0700)
committerGitHub <noreply@github.com>
Sat, 24 Oct 2020 19:07:35 +0000 (12:07 -0700)
commitbe3c3a0e468237430ad7d19a33c60d306199a7f2
tree63fb8ca636108b358012da9cf8e005e9569a501b
parent8cd1dbae32d9303caac3a473d3332f17bc98c921
bpo-35823: Allow setsid() after vfork() on Linux. (GH-22945)

It should just be a syscall updating a couple of fields in the kernel side
process info.  Confirming, in glibc is appears to be a shim for the setsid
syscall (based on not finding any code implementing anything special for it)
and in uclibc (*much* easier to read) it is clearly just a setsid syscall shim.

A breadcrumb _suggesting_ that it is not allowed on Darwin/macOS comes from
a commit in emacs: https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00297.html
but I don't have a way to verify if that is true or not.
As we are not supporting vfork on macOS today I just left a note in a comment.
Modules/_posixsubprocess.c